-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
171 lines (166 loc) · 3.13 KB
/
docker-compose.yml
File metadata and controls
171 lines (166 loc) · 3.13 KB
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
159
160
161
162
163
164
165
166
167
168
169
170
171
services:
frontend:
container_name: frontend
build: src/frontend/
networks:
- proxy
volumes:
- node_modules:/frontend/node_modules
- frontend:/frontend
restart: always
depends_on:
- proxy
redis:
container_name: redis
build: src/backend/redis/
restart: always
volumes:
- redis:/data
networks:
- proxy
ports:
- 6379
db:
container_name: db
build: src/database/
env_file: src/backend/.env.dev
ports:
- 5432
volumes:
- db:/var/lib/postgresql/data
restart: always
shm_size: 128mb
networks:
- proxy
proxy:
container_name: proxy
build: src/proxy/
ports:
- 7104:7104
- 7102:7102
restart: always
networks:
- proxy
# backend
auth:
container_name: auth
build: src/backend/auth/
env_file: src/backend/.env.dev
restart: always
volumes:
- auth:/auth
- dependencies:/opt/venv/
networks:
- proxy
depends_on:
- db
migration:
container_name: migration
build: src/backend/migration/
env_file: src/backend/.env.dev
restart: always
volumes:
- auth:/usr/src/app/auth
- pong:/usr/src/app/pong
- friendship:/usr/src/app/friendship
- dependencies:/opt/venv/
networks:
- proxy
depends_on:
- db
- auth
pong:
container_name: pong
build: src/backend/pong
env_file: src/backend/.env.dev
restart: always
volumes:
- pong:/pong
- dependencies:/opt/venv/
networks:
- proxy
depends_on:
- db
- auth
- migration
friendship:
container_name: friendship
build: src/backend/friendship/
env_file: src/backend/.env.dev
restart: always
volumes:
- friendship:/friendship
- dependencies:/opt/venv/
networks:
- proxy
depends_on:
- db
- auth
- pong
- migration
livechat:
container_name: livechat
build: src/backend/livechat/
env_file: src/backend/.env.dev
restart: always
volumes:
- livechat:/livechat
networks:
- proxy
depends_on:
- auth
networks:
proxy:
name: proxy
driver: bridge
volumes:
frontend:
driver: local
driver_opts:
type: none
o: bind
device: ${USER}/volumes/frontend/
redis:
driver: local
driver_opts:
type: none
o: bind
device: ${USER}/volumes/redis/
db:
driver: local
driver_opts:
type: none
o: bind
device: ${USER}/volumes/db
node_modules:
# backend
dependencies:
driver: local
driver_opts:
type: none
o: bind
device: ${USER}/volumes/dependencies
pong:
driver: local
driver_opts:
type: none
o: bind
device: ${USER}/volumes/pong/
auth:
driver: local
driver_opts:
type: none
o: bind
device: ${USER}/volumes/auth/
friendship:
driver: local
driver_opts:
type: none
o: bind
device: ${USER}/volumes/friendship/
livechat:
driver: local
driver_opts:
type: none
o: bind
device: ${USER}/volumes/livechat