Skip to content

Commit

Permalink
fix: add nakama-debug on docker-compose to fix debug mode (#51)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
zulkhair authored Jun 21, 2024
1 parent ef382d1 commit 8440c5b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
- REDIS_MODE=normal
- ROUTER_KEY=${ROUTER_KEY}
restart: unless-stopped

cardinal-debug:
container_name: cardinal-debug
build:
Expand Down Expand Up @@ -85,10 +85,8 @@ services:
image: ghcr.io/argus-labs/world-engine-nakama:1.2.5
container_name: nakama
depends_on:
nakama-db:
condition: service_healthy
cardinal:
condition: service_started
- "nakama-db"
- "${CARDINAL_CONTAINER:-cardinal}"
environment:
- CARDINAL_ADDR=${CARDINAL_ADDR:-cardinal:4040}
- CARDINAL_NAMESPACE=${CARDINAL_NAMESPACE}
Expand Down

0 comments on commit 8440c5b

Please sign in to comment.