guestbooky/build/docker-compose.public.yml
Felipe Cotti 2aaad4cf96
Some checks failed
CI/CD / build-and-test (push) Has been cancelled
Don't just expose things when in public.
2024-12-01 16:43:24 -03:00

47 lines
1.3 KiB
YAML

services:
guestbooky-be:
image: cotti/guestbooky-be
container_name: guestbooky-be
ports:
- "8080:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Production
- CORS_ORIGINS=https://guestbooky.example.com
- ACCESS_USERNAME=user
- ACCESS_PASSWORD=pass
- ACCESS_TOKENKEY=youbetterbesureyouareusingatokenkey
- ACCESS_ISSUER=https://guestbooky.example.com/api
- ACCESS_AUDIENCE=https://guestbooky.example.com
- CLOUDFLARE_SECRET=0x000000000000000000000000000000000
- MONGODB_CONNECTIONSTRING=mongodb://mongouser:mongopass@mongo:27017/Guestbooky
- MONGODB_DATABASENAME=Guestbooky
- LOG_LEVEL=Debug
depends_on:
- mongo
restart: unless-stopped
networks:
- guestbooky
mongo:
image: mongo
container_name: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: mongo
volumes:
- ./mongodb/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- ./mongodb/mongod.conf:/etc/mongod.conf:ro
- mongodata:/data/db
command: ["mongod", "--config", "/etc/mongod.conf"]
networks:
- guestbooky
volumes:
mongodata:
networks:
guestbooky:
driver: bridge