From acb97d9c4806e4ad278741bb617e0ab8887de98e Mon Sep 17 00:00:00 2001 From: Declan Chidlow Date: Wed, 7 Aug 2024 12:51:11 +0800 Subject: [PATCH] Update docker compose to fix issues with api connecting --- docker-compose.yml.example | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml.example b/docker-compose.yml.example index 88566e7..8698363 100644 --- a/docker-compose.yml.example +++ b/docker-compose.yml.example @@ -42,11 +42,14 @@ services: - DB_USERNAME=mogus - DB_PASS - DB_NAME=admin - - REDIS_URL + - REDIS_URL=redis://redis:6379 expose: - 9000 ports: - - 0.0.0.0:9000:9000 + - "9000:9000" + depends_on: + - mongo + - redis restart: unless-stopped mongo: @@ -56,9 +59,6 @@ services: - MONGO_INITDB_ROOT_PASSWORD=${DB_PASS} expose: - 27017 - # If you want to access the database from outside - #ports: - # - "0.0.0.0:36602:27017" volumes: - ./db:/data/db:rw restart: unless-stopped