This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
214 lines (200 loc) · 3.78 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
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
version: "3.6"
services:
redis_service:
image: redis:latest
container_name: redis_service
networks:
- microservices
ports:
- "6379:6379"
expose:
- 6379
postgres_db:
image: postgres:14
env_file:
- .env
container_name: postgres_db
volumes:
- .:/docker-entrypoint-initdb.d
ports:
- "5432:5432"
expose:
- 5432
networks:
- microservices
typesense_service:
image: typesense/typesense:26.0
restart: on-failure
container_name: typesense_service
ports:
- "8108:8108"
expose:
- 8108
volumes:
- ./typesense-data:/data
command: '--data-dir /data --api-key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
networks:
- microservices
api:
image: api
build: ./backend/api
container_name: api
restart: always
depends_on:
- redis_service
- typesense_service
- postgres_db
env_file:
- .env
ports:
- "8000:8000"
expose:
- 8000
networks:
- microservices
indexer:
image: indexer
build: ./backend/indexer
container_name: indexer
restart: always
depends_on:
- typesense_service
- postgres_db
env_file:
- ind.env
ports:
- "8006:8006"
expose:
- 8006
networks:
- microservices
mailer:
image: mailer
build: ./backend/mailer
container_name: mailer
restart: always
env_file:
- mail.env
ports:
- "8002:8002"
expose:
- 8002
networks:
- microservices
message:
image: message
build: ./backend/message
container_name: message
restart: always
depends_on:
- postgres_db
env_file:
- msg.env
ports:
- "8003:8003"
expose:
- 8003
networks:
- microservices
note:
image: note
build: ./backend/note
container_name: note
restart: always
depends_on:
- postgres_db
env_file:
- note.env
ports:
- "8004:8004"
expose:
- 8004
networks:
- microservices
upload_file:
image: upload_file
build: ./backend/upload_file
container_name: upload_file
restart: always
env_file:
- file.env
ports:
- "8005:8005"
expose:
- 8005
networks:
- microservices
frontend:
image: frontend
build: ./pro-connect
container_name: frontend
restart: always
depends_on:
- proxy_service
- api
- upload_file
- note
- message
networks:
- microservices
ports:
- 4200:4200
expose:
- 4200
celery_service:
image: celery_service
build:
context: ./backend/api
dockerfile: Dockerfile.celery
env_file: .env
container_name: celery_service
depends_on:
- redis_service
networks:
- microservices
flower_service:
image: flower_service
build:
context: ./backend/api
dockerfile: Dockerfile.flower
container_name: flower_service
env_file: .env
depends_on:
- redis_service
- celery_service
networks:
- microservices
ports:
- 5555:5555
beat_service:
image: beat_service
build:
context: ./backend/api
dockerfile: Dockerfile.beat
env_file: .env
container_name: beat_service
depends_on:
- redis_service
networks:
- microservices
proxy_service:
image: proxy_service
build: ./ng
container_name: proxy_service
restart: always
volumes:
- ./ng/nginx.conf:/etc/nginx/nginx.conf
networks:
- microservices
depends_on:
- api
- upload_file
- note
- message
ports:
- 80:80
expose:
- 80
networks:
microservices:
driver: bridge