-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
158 lines (150 loc) · 3.39 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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
version: '3.7'
networks:
red-pocket-dev:
driver: bridge
services:
red-pocket-auth-srv:
container_name: red-pocket-auth-srv
build:
context: .
dockerfile: auth-srv/Dockerfile
network: host
environment:
- NODE_ENV=dev
command: npm run start:dev
env_file:
- .env
ports:
- ${AUTH_APP_PORT}:${AUTH_APP_PORT}
volumes:
- ./auth-srv:/app
- ./rp-proto:/app/rp-proto
- /app/dist
- /app/node_modules
- npm-cache:/root/.npm
- ts-cache:/root/.ts-node
working_dir: /app
networks:
- red-pocket-dev
depends_on:
- red-pocket-postgres
red-pocket-gateway:
container_name: red-pocket-gateway
build:
context: .
dockerfile: gateway/Dockerfile
network: host
environment:
- NODE_ENV=dev
command: npm run start:dev
env_file:
- .env
ports:
- ${GATEWAY_APP_PORT}:${GATEWAY_APP_PORT}
volumes:
- ./gateway:/app
- ./rp-proto:/app/rp-proto
- /app/dist
- /app/node_modules
- npm-cache:/root/.npm
- ts-cache:/root/.ts-node
working_dir: /app
networks:
- red-pocket-dev
red-pocket-user-srv:
container_name: red-pocket-user-srv
build:
context: .
dockerfile: user-srv/Dockerfile
network: host
environment:
- NODE_ENV=dev
command: npm run start:dev
env_file:
- .env
ports:
- ${USER_APP_PORT}:${USER_APP_PORT}
volumes:
- ./user-srv:/app
- ./rp-proto:/app/rp-proto
- /app/dist
- /app/node_modules
- npm-cache:/root/.npm
- ts-cache:/root/.ts-node
working_dir: /app
networks:
- red-pocket-dev
depends_on:
- red-pocket-postgres
red-pocket-jackpot-srv:
container_name: red-pocket-jackpot-srv
build:
context: .
dockerfile: jackpot-srv/Dockerfile
network: host
environment:
- NODE_ENV=dev
command: npm run start:dev
env_file:
- .env
ports:
- ${JACKPOT_APP_PORT}:${JACKPOT_APP_PORT}
volumes:
- ./jackpot-srv:/app
- ./rp-proto:/app/rp-proto
- /app/dist
- /app/node_modules
- npm-cache:/root/.npm
- ts-cache:/root/.ts-node
working_dir: /app
networks:
- red-pocket-dev
depends_on:
- red-pocket-postgres
red-pocket-bet-srv:
container_name: red-pocket-bet-srv
build:
context: .
dockerfile: bet-srv/Dockerfile
network: host
environment:
- NODE_ENV=dev
command: npm run start:dev
env_file:
- .env
ports:
- ${BETS_APP_PORT}:${BETS_APP_PORT}
volumes:
- ./bet-srv:/app
- ./rp-proto:/app/rp-proto
- /app/dist
- /app/node_modules
- npm-cache:/root/.npm
- ts-cache:/root/.ts-node
working_dir: /app
networks:
- red-pocket-dev
depends_on:
- red-pocket-postgres
red-pocket-postgres:
container_name: red-pocket-postgres
image: postgres:13
restart: always
environment:
PGDATA: /var/lib/postgresql/data
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- ${DB_OUT_PORT}:${DB_PORT}
volumes:
- postgres-red-pocket:/var/lib/postgresql/data
- ./db:/docker-entrypoint-initdb.d/
networks:
- red-pocket-dev
volumes:
postgres-red-pocket:
driver: local
npm-cache:
driver: local
ts-cache:
driver: local