Files
tekton/server/docker-compose.yaml
2026-04-30 04:18:46 +08:00

53 lines
1.4 KiB
YAML

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
--runtime.path /nakama/data/modules
volumes:
- ./nakama:/nakama/data/modules
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: