Update docker compose to fix issues with api connecting

This commit is contained in:
Declan Chidlow 2024-08-07 12:51:11 +08:00
parent b90aadfbba
commit acb97d9c48

View file

@ -42,11 +42,14 @@ services:
- DB_USERNAME=mogus - DB_USERNAME=mogus
- DB_PASS - DB_PASS
- DB_NAME=admin - DB_NAME=admin
- REDIS_URL - REDIS_URL=redis://redis:6379
expose: expose:
- 9000 - 9000
ports: ports:
- 0.0.0.0:9000:9000 - "9000:9000"
depends_on:
- mongo
- redis
restart: unless-stopped restart: unless-stopped
mongo: mongo:
@ -56,9 +59,6 @@ services:
- MONGO_INITDB_ROOT_PASSWORD=${DB_PASS} - MONGO_INITDB_ROOT_PASSWORD=${DB_PASS}
expose: expose:
- 27017 - 27017
# If you want to access the database from outside
#ports:
# - "0.0.0.0:36602:27017"
volumes: volumes:
- ./db:/data/db:rw - ./db:/data/db:rw
restart: unless-stopped restart: unless-stopped