Files
beelzebub/docker-compose.yml

38 lines
927 B
YAML
Raw Normal View History

2022-05-08 20:49:53 +02:00
version: "3.9"
services:
beelzebub:
build: .
2022-05-08 21:03:46 +02:00
#network_mode: host #Not work on Mac OS
2022-05-08 20:49:53 +02:00
container_name: beelzebub
depends_on:
mongo:
condition: service_healthy
2022-05-08 21:03:46 +02:00
ports: # Remove me, if use configuration network_mode: host
2022-05-08 20:49:53 +02:00
- "22:22"
- "8080:8080"
2022-05-08 21:03:46 +02:00
- "80:80"
2022-05-17 00:17:16 +02:00
mongo:
image: mongo
container_name: mongo
restart: always
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo mongo:27017/test --quiet
interval: 30s
timeout: 10s
retries: 5
2022-05-17 00:17:16 +02:00
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
mongo-express:
image: mongo-express
restart: always
container_name: mongo-express
ports:
- "8081:8081"
2022-05-17 00:17:16 +02:00
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/