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 20, 2024
1 parent ef382d1 commit 7682f27
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
29 changes: 29 additions & 0 deletions docker-compose.debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: "3"
services:
cardinal:
container_name: cardinal
build:
context: ./cardinal
target: runtime-debug
## Additional capabilities flag for debugging
cap_add:
- SYS_PTRACE
security_opt:
- "seccomp:unconfined"
depends_on:
- redis
expose:
- "4040"
- "40000"
ports:
- "4040:4040"
- "40000:40000"
environment:
- CARDINAL_PORT=${CARDINAL_PORT:-4040}
- CARDINAL_NAMESPACE=${CARDINAL_NAMESPACE}
- CARDINAL_MODE=${CARDINAL_MODE}
- REDIS_ADDRESS=${REDIS_ADDRESS:-redis:6379}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- REDIS_MODE=normal
- ROUTER_KEY=${ROUTER_KEY}
restart: unless-stopped
28 changes: 0 additions & 28 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,6 @@ services:
- ROUTER_KEY=${ROUTER_KEY}
restart: unless-stopped

cardinal-debug:
container_name: cardinal-debug
build:
context: ./cardinal
target: runtime-debug
## Additional capabilities flag for debugging
cap_add:
- SYS_PTRACE
security_opt:
- "seccomp:unconfined"
depends_on:
- redis
expose:
- "4040"
- "40000"
ports:
- "4040:4040"
- "40000:40000"
environment:
- CARDINAL_PORT=${CARDINAL_PORT:-4040}
- CARDINAL_NAMESPACE=${CARDINAL_NAMESPACE}
- CARDINAL_MODE=${CARDINAL_MODE}
- REDIS_ADDRESS=${REDIS_ADDRESS:-redis:6379}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- REDIS_MODE=normal
- ROUTER_KEY=${ROUTER_KEY}
restart: unless-stopped

evm:
container_name: evm_base_shard
environment:
Expand Down

0 comments on commit 7682f27

Please sign in to comment.