-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.prod.yaml
107 lines (101 loc) · 2.28 KB
/
docker-compose.prod.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: '0.1'
services:
postgres:
env_file:
- .env.prod
environment:
- POSTGRES_DB=kkujjang
- TZ=$TIME_ZONE
container_name: $POSTGRES_HOST
image: postgres:latest
volumes:
- ./data/postgres/:/docker-entrypoint-initdb.d/
restart: always
tty: true
stdin_open: true
ports:
- $PGPORT:$PGPORT
mongodb:
env_file:
- .env.prod
environment:
- MONGO_INITDB_DATABASE=kkujjang
- TZ=$TIME_ZONE
container_name: $MONGODB_HOST
volumes:
- ./data/mongodb/:/docker-entrypoint-initdb.d/mongo-init.js:ro
image: mongo:latest
restart: always
tty: true
stdin_open: true
command: mongod --port $MONGODB_PORT
ports:
- $MONGODB_PORT:$MONGODB_PORT
redis:
env_file:
- .env.prod
environment:
- TZ=$TIME_ZONE
image: redis/redis-stack-server:latest
container_name: $REDIS_HOST
restart: always
command: redis-server --requirepass $REDIS_PASSWORD --port $REDIS_PORT
tty: true
stdin_open: true
ports:
- $REDIS_PORT:$REDIS_PORT
rabbitmq:
env_file:
- .env.prod
environment:
- RABBITMQ_DEFAULT_USER=$RABBITMQ_DEFAULT_USER
- RABBITMQ_DEFAULT_PASS=$RABBITMQ_DEFAULT_PASS
- TZ=$TIME_ZONE
container_name: $RABBITMQ_HOST
image: rabbitmq:3.12.4-management-alpine
restart: always
tty: true
stdin_open: true
ports:
- $RABBITMQ_PORT:$RABBITMQ_PORT
- $RABBITMQ_MANAGER_PORT:$RABBITMQ_MANAGER_PORT
api:
container_name: kkujjang-api-server
env_file:
- .env.prod
environment:
- NODE_ENV=production
- TZ=$TIME_ZONE
build:
context: .
dockerfile: Dockerfile.api
image: kkujjang-api-server:latest
volumes:
- ./cert:/cert
restart: always
tty: true
stdin_open: true
expose:
- $HTTPS_PORT
ports:
- $HTTPS_PORT:$HTTPS_PORT
game:
container_name: kkujjang-game-server
env_file:
- .env.prod
environment:
- NODE_ENV=production
- TZ=$TIME_ZONE
build:
context: .
dockerfile: Dockerfile.game
image: kkujjang-game-server:latest
volumes:
- ./cert:/cert
restart: always
tty: true
stdin_open: true
expose:
- $WSS_PORT
ports:
- $WSS_PORT:$WSS_PORT