summaryrefslogtreecommitdiff
path: root/toolchain/docker-compose.nakama.yml
diff options
context:
space:
mode:
authorBobby <[email protected]>2026-03-29 22:52:46 +0530
committerBobby <[email protected]>2026-03-29 22:52:46 +0530
commit9eb9b7f4bd552a641235764f66483e1f940fcfd9 (patch)
treeda520b923b5e6758d5457b6233dd6671fc640914 /toolchain/docker-compose.nakama.yml
parent65a143a0871c35989b7c7ea6723d39a0585c089e (diff)
downloadechoes-of-vaelun-main.tar.xz
echoes-of-vaelun-main.zip
feat: nexus account manager scaffold with auth, characters, realmsHEADmain
Diffstat (limited to 'toolchain/docker-compose.nakama.yml')
-rw-r--r--toolchain/docker-compose.nakama.yml81
1 files changed, 81 insertions, 0 deletions
diff --git a/toolchain/docker-compose.nakama.yml b/toolchain/docker-compose.nakama.yml
new file mode 100644
index 0000000..0499b91
--- /dev/null
+++ b/toolchain/docker-compose.nakama.yml
@@ -0,0 +1,81 @@
+services:
+ cockroachdb:
+ image: cockroachdb/cockroach:latest-v23.1
+ command: start-single-node --insecure --store=attrs=ssd,path=/var/lib/cockroach/
+ restart: "no"
+ 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
+
+ nakama:
+ image: registry.heroiclabs.com/heroiclabs/nakama:3.22.0
+ entrypoint:
+ - "/bin/sh"
+ - "-ecx"
+ - >
+ /nakama/nakama migrate up --database.address root@cockroachdb:26257 &&
+ exec /nakama/nakama --name nakama1 --database.address root@cockroachdb:26257
+ --logger.level DEBUG --session.token_expiry_sec 7200
+ --metrics.prometheus_port 9100
+ restart: "no"
+ links:
+ - "cockroachdb:db"
+ depends_on:
+ cockroachdb:
+ condition: service_healthy
+ prometheus:
+ condition: service_started
+ volumes:
+ - ../data/nakama:/nakama/data
+ expose:
+ - "7349"
+ - "7350"
+ - "7351"
+ - "9100"
+ ports:
+ - "7349:7349"
+ - "7350:7350"
+ - "7351:7351"
+ healthcheck:
+ test: ["CMD", "/nakama/nakama", "healthcheck"]
+ interval: 10s
+ timeout: 5s
+ retries: 5
+
+ prometheus:
+ image: prom/prometheus
+ entrypoint: /bin/sh -c
+ command: |
+ 'sh -s <<EOF
+ cat > ./prometheus.yml <<EON
+ global:
+ scrape_interval: 15s
+ evaluation_interval: 15s
+
+ scrape_configs:
+ - job_name: prometheus
+ static_configs:
+ - targets: ['localhost:9090']
+
+ - job_name: nakama
+ metrics_path: /
+ static_configs:
+ - targets: ['nakama:9100']
+ EON
+ prometheus --config.file=./prometheus.yml
+ EOF'
+ ports:
+ - "9090:9090"
+
+volumes:
+ data: