-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
61 lines (61 loc) · 1.54 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '3'
services:
rhyme-game-db:
container_name: rhyme-game-db
image: postgres:9.6-alpine
environment:
- POSTGRES_DB=nakama
- POSTGRES_PASSWORD=localdb
volumes:
- data:/var/lib/postgresql/data
expose:
- "8080"
- "5432"
ports:
- "5432:5432"
- "8080:8080"
rhyme-game-nakama:
container_name: rhyme-game-nakama
image: heroiclabs/nakama:3.10.0
entrypoint:
- "/bin/sh"
- "-ecx"
- >
/nakama/nakama migrate up --database.address postgres:localdb@rhyme-game-db:5432/nakama &&
exec /nakama/nakama --name nakama1 --database.address postgres:localdb@rhyme-game-db:5432/nakama --logger.level DEBUG --session.token_expiry_sec 60 --session.refresh_token_expiry_sec 3600 --runtime.js_entrypoint "index.js" --match.max_empty_sec 30 --shutdown_grace_sec 30
restart: always
links:
- "rhyme-game-db:db"
depends_on:
- rhyme-game-db
volumes:
- ./server/data:/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
rhyme-game-web:
container_name: rhyme-game-web
image: node:14
user: "node"
working_dir: /home/node/app
depends_on:
- rhyme-game-nakama
volumes:
- ./client:/home/node/app
expose:
- "3000"
ports:
- "3000:3000"
command: "yarn start"
volumes:
data: