Skip to content

Commit

Permalink
fix: remove attach from nakama db docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
zulkhair committed Jun 26, 2024
1 parent 8fe64c8 commit 9c6ccc7
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,31 +110,30 @@ services:
- world-engine
restart: unless-stopped

nakama-db:
container_name: nakama-db
image: cockroachdb/cockroach:latest-v23.1
command: start-single-node --insecure --store=attrs=ssd,path=/var/lib/cockroach/,size=20%
restart: unless-stopped
environment:
- COCKROACH_DATABASE=nakama
- COCKROACH_USER=root
- COCKROACH_PASSWORD=${DB_PASSWORD:-very_unsafe_password_replace_me}
volumes:
- data:/var/lib/cockroach
expose:
- "8080"
- "26257"
ports:
- "26257:26257"
- "8080:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/health?ready=1" ]
interval: 3s
timeout: 3s
retries: 5
attach: false
networks:
- world-engine
nakama-db:
container_name: nakama-db
image: cockroachdb/cockroach:latest-v23.1
command: start-single-node --insecure --store=attrs=ssd,path=/var/lib/cockroach/,size=20%
restart: unless-stopped
environment:
- COCKROACH_DATABASE=nakama
- COCKROACH_USER=root
- COCKROACH_PASSWORD=${DB_PASSWORD:-very_unsafe_password_replace_me}
volumes:
- data:/var/lib/cockroach
expose:
- "8080"
- "26257"
ports:
- "26257:26257"
- "8080:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/health?ready=1" ]
interval: 3s
timeout: 3s
retries: 5
networks:
- world-engine

redis:
container_name: redis
Expand Down

0 comments on commit 9c6ccc7

Please sign in to comment.