update holiday
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
container_name: nakama-postgres
|
||||
image: postgres:15-alpine
|
||||
environment:
|
||||
- POSTGRES_DB=nakama
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=localdb
|
||||
volumes:
|
||||
- nakama-data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
healthcheck:
|
||||
test: ["CMD", "pg_isready", "-U", "postgres", "-d", "nakama"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
restart: unless-stopped
|
||||
|
||||
nakama:
|
||||
container_name: nakama
|
||||
image: heroiclabs/nakama:3.24.2
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
entrypoint:
|
||||
- "/bin/sh"
|
||||
- "-ecx"
|
||||
- >
|
||||
/nakama/nakama migrate up --database.address postgres:localdb@postgres:5432/nakama &&
|
||||
exec /nakama/nakama --name nakama
|
||||
--database.address postgres:localdb@postgres:5432/nakama
|
||||
--logger.level DEBUG
|
||||
--session.token_expiry_sec 7200
|
||||
--console.username admin
|
||||
--console.password password
|
||||
ports:
|
||||
- "7349:7349" # gRPC API
|
||||
- "7350:7350" # HTTP API (main client port)
|
||||
- "7351:7351" # Console
|
||||
healthcheck:
|
||||
test: ["CMD", "/nakama/nakama", "healthcheck"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
nakama-data:
|
||||
Reference in New Issue
Block a user