Skip to content

Commit

Permalink
add nakama-debug on docker-compose.yml to fix debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
zulkhair committed Jun 12, 2024
1 parent ef382d1 commit ba043c9
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,50 @@ services:
- "9601:9601"
- "8545:8545"

nakama-debug:
platform: linux/amd64
image: ghcr.io/argus-labs/world-engine-nakama:1.2.5
container_name: nakama-debug
depends_on:
nakama-db:
condition: service_healthy
cardinal-debug:
condition: service_started
environment:
- CARDINAL_ADDR=${CARDINAL_ADDR:-cardinal:4040}
- CARDINAL_NAMESPACE=${CARDINAL_NAMESPACE}
- DB_PASSWORD=${DB_PASSWORD:-very_unsafe_password_replace_me}
- ENABLE_ALLOWLIST=${ENABLE_ALLOWLIST:-false}
entrypoint:
- "/bin/sh"
- "-ecx"
- >
/nakama/nakama migrate up --database.address postgres:$$DB_PASSWORD@nakama-db:5432/nakama &&
exec /nakama/nakama --config /nakama/data/local.yml --database.address postgres:$$DB_PASSWORD@nakama-db:5432/nakama --socket.outgoing_queue_size=${OUTGOING_QUEUE_SIZE:-64}
# Replace entrypoint with the following when using cockroachdb instead of postgres.
# entrypoint:
# - "/bin/sh"
# - "-ecx"
# - >
# /nakama/nakama migrate up --database.address root:$$DB_PASSWORD@nakama-db:26257/nakama &&
# exec /nakama/nakama --config /nakama/data/local.yml --database.address root:$$DB_PASSWORD@nakama-db:26257/nakama
extra_hosts:
- "host.docker.internal:host-gateway"
expose:
- "7349"
- "7350"
- "7351"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7350/"]
interval: 10s
timeout: 5s
retries: 5
ports:
- "7349:7349"
- "7350:7350"
- "7351:7351"
restart: unless-stopped

nakama:
platform: linux/amd64
image: ghcr.io/argus-labs/world-engine-nakama:1.2.5
Expand Down

0 comments on commit ba043c9

Please sign in to comment.