Last active
April 28, 2018 23:11
-
-
Save novabyte/346b68e3e45da1a09180fed04c03bc60 to your computer and use it in GitHub Desktop.
Use a prerelease image of Nakama server with Docker Compose.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
cockroachdb: | |
image: cockroachdb/cockroach:v2.0.1 | |
command: start --insecure --store=attrs=ssd,path=/var/lib/cockroach/ | |
restart: always | |
volumes: | |
- data:/var/lib/cockroach | |
expose: | |
- "8080" | |
- "26257" | |
ports: | |
- "26257:26257" | |
- "8080:8080" | |
nakama: | |
image: heroiclabs/nakama-prerelease:2.0.0-91dc2c9 | |
entrypoint: | |
- /bin/bash | |
- -ecx | |
- "/nakama/nakama migrate up --database.address root@cockroachdb:26257 && /nakama/nakama --name nk1 --database.address root@cockroachdb:26257 --log.stdout --log.verbose" | |
restart: always | |
links: | |
- "cockroachdb:db" | |
depends_on: | |
- cockroachdb | |
volumes: | |
- ./:/nakama/data | |
expose: | |
- "7349" | |
- "7350" | |
- "7351" | |
ports: | |
- "7349:7349" | |
- "7350:7350" | |
- "7351:7351" | |
healthcheck: | |
test: ["CMD", "curl", "-f", "http://localhost:7350/"] | |
interval: 10s | |
timeout: 5s | |
retries: 5 | |
volumes: | |
data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment