Skip to content

Commit 8440c5b

Browse files
authored
fix: add nakama-debug on docker-compose to fix debug mode (#51)
Adding nakama-debug on docker-compose.yml to fix running cardinal on debug mode `--debug` flag. Previously `cardinal-debug` container need `nakama` but `nakama` depends-on `cardinal` not `cardinal-debug` so this results an error when running cardinal with debug mode. ** ~~Updated using two docker-compose file. CLI will run with args -f docker-compose.yml -f docker-compose.debug.yml up in --debug mode and it will override the first docker-compose file with the second one.~~ Updated using short syntax with envar passed from world-cli
1 parent ef382d1 commit 8440c5b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docker-compose.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ services:
2121
- REDIS_MODE=normal
2222
- ROUTER_KEY=${ROUTER_KEY}
2323
restart: unless-stopped
24-
24+
2525
cardinal-debug:
2626
container_name: cardinal-debug
2727
build:
@@ -85,10 +85,8 @@ services:
8585
image: ghcr.io/argus-labs/world-engine-nakama:1.2.5
8686
container_name: nakama
8787
depends_on:
88-
nakama-db:
89-
condition: service_healthy
90-
cardinal:
91-
condition: service_started
88+
- "nakama-db"
89+
- "${CARDINAL_CONTAINER:-cardinal}"
9290
environment:
9391
- CARDINAL_ADDR=${CARDINAL_ADDR:-cardinal:4040}
9492
- CARDINAL_NAMESPACE=${CARDINAL_NAMESPACE}

0 commit comments

Comments
 (0)