-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
56 lines (53 loc) · 1.03 KB
/
docker-compose.yaml
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
version: "3.7"
services:
client:
build:
context: "./client"
dockerfile: Dockerfile
depends_on:
- server
ports:
- "3001:3000"
environment:
SOCKET_URL: ws://127.0.0.1:9001
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
networks:
- game-network
server:
build:
context: "."
dockerfile: Dockerfile
# ports:
# - "9001"
environment:
PORT: 9001
NODE_ENV: production
REDIS_HOST: redis
REDIS_PORT: 6379
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- game-network
restart: always
links:
- redis
depends_on:
- redis
redis:
image: redis
container_name: game_cache
ports:
- "6379:6379"
command: bash -c "redis-server --appendonly yes"
volumes:
- ./data/redis:/data
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
networks:
- game-network
networks:
game-network:
driver: bridge