forked from keyteki/keyteki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (58 loc) · 1.5 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
version: '3.5'
services:
lobby:
restart: always
build: .
image: keyteki
ports:
- '4000:4000'
- '9229:9229'
volumes:
- './client:/usr/src/app/client'
- './server:/usr/src/app/server'
- './public:/usr/src/app/public'
- './less:/usr/src/app/less'
links:
- postgres
depends_on:
- postgres
command:
- node
- '--inspect=0.0.0.0:9229'
- '.'
node:
restart: always
build: .
ports:
- '9500:9500'
- '9339:9339'
volumes:
- './server:/usr/src/app/server'
command:
- node
- '--inspect=0.0.0.0:9339'
- 'server/gamenode'
postgres:
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-keyteki}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changemeplease}
ports:
- '54320:5432'
volumes:
- postgres:/data/postgres
- ./server/db/schema:/docker-entrypoint-initdb.d
restart: unless-stopped
redis:
image: 'redis:alpine'
command: redis-server
ports:
- '6379:6379'
volumes:
- $PWD/redis-data:/var/lib/redis
- $PWD/redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
volumes:
postgres:
node_modules: