guestbooky/build/docker-compose.public.yml

40 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2024-10-05 00:27:04 +02:00
services:
guestbooky-be:
image: cotti/guestbooky-be
container_name: guestbooky-be
2024-10-05 00:27:04 +02:00
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
2024-10-05 00:27:04 +02:00
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"]
ports:
- "27017:27017"
volumes:
mongodata: