-
Notifications
You must be signed in to change notification settings - Fork 240
/
docker-compose.dev.yml
220 lines (201 loc) · 5.11 KB
/
docker-compose.dev.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
215
216
217
218
219
220
name: monitorss-dev
services:
feed-requests-redis-cache:
extends:
file: docker-compose.base.yml
service: feed-requests-redis-cache
ports:
- 6379:6379
seaweed-fs:
image: chrislusf/seaweedfs
container_name: 'seaweed-fs'
ports:
- 8333:8333
command: server -s3
healthcheck:
test: curl --fail http://localhost:8333 || text 1
interval: 5s
timeout: 10s
retries: 20
volumes:
- fs-s3-storage-data:/data/seaweed-s3
networks:
- monitorss-default
rabbitmq-broker:
extends:
file: docker-compose.base.yml
service: rabbitmq-broker
ports:
- 5672:5672
- 15672:15672
mongo:
extends:
file: docker-compose.base.yml
service: mongo
ports:
- "27018:27017"
feed-requests-postgres-db:
extends:
file: docker-compose.base.yml
service: feed-requests-postgres-db
ports:
- "5431:5432"
user-feeds-postgres-db:
extends:
file: docker-compose.base.yml
service: user-feeds-postgres-db
ports:
- '5430:5432'
bot-presence-service:
extends:
file: docker-compose.base.yml
service: bot-presence-service
volumes:
- ./services/bot-presence:/usr/src/app
- /usr/src/app/node_modules/
command: npm run start:dev
env_file:
- ./.env.local
discord-rest-listener-service:
extends:
file: docker-compose.base.yml
service: discord-rest-listener-service
volumes:
- ./services/discord-rest-listener:/usr/src/app
- /usr/src/app/node_modules/
command: npm start
env_file:
- ./.env.local
feed-requests-service:
extends:
file: docker-compose.base.yml
service: feed-requests-service
volumes:
- ./services/feed-requests:/usr/src/app
- /usr/src/app/node_modules/
command: npm run start:local
env_file:
- ./.env.local
environment:
- LOG_LEVEL=debug
- FEED_REQUESTS_S3_ENDPOINT=http://seaweed-fs:8333
- FEED_REQUESTS_S3_API_KEY_ID=1
- FEED_REQUESTS_S3_API_KEY=1
feed-requests-postgres-migration:
extends:
file: docker-compose.base.yml
service: feed-requests-postgres-migration
command: "npm run migration:local:up"
env_file:
- ./.env.local
environment:
- FEED_REQUESTS_S3_ENDPOINT=http://seaweed-fs:8333
- FEED_REQUESTS_S3_API_KEY_ID=1
- FEED_REQUESTS_S3_API_KEY=1
- LOG_LEVEL=debug
feed-requests-api:
extends:
file: docker-compose.base.yml
service: feed-requests-api
volumes:
- ./services/feed-requests:/usr/src/app
- /usr/src/app/node_modules/
ports:
- "5000:5000"
- "4999:4999"
command: npm run start:local
env_file:
- ./.env.local
user-feeds-service:
extends:
file: docker-compose.base.yml
service: user-feeds-service
volumes:
- ./services/user-feeds:/usr/src/app
- /usr/src/app/node_modules/
command: npm run start:local
env_file:
- ./.env.local
environment:
- LOG_LEVEL=debug
- USER_FEEDS_START_TARGET=service
user-feeds-api:
extends:
file: docker-compose.base.yml
service: user-feeds-service
volumes:
- ./services/user-feeds:/usr/src/app
- /usr/src/app/node_modules/
ports:
- "5001:5000"
command: npm run start:local
env_file:
- ./.env.local
environment:
- LOG_LEVEL=debug
- USER_FEEDS_START_TARGET=api
user-feeds-postgres-migration:
extends:
file: docker-compose.base.yml
service: user-feeds-postgres-migration
command: npm run migration:local:up
env_file:
- ./.env.local
# Schedule emitter
schedule-emitter-service:
extends:
file: docker-compose.base.yml
service: schedule-emitter-service
volumes:
- ./services/backend-api:/usr/src/app
- /usr/src/app/node_modules/
env_file:
- ./.env.local
environment:
- NODE_ENV=local
- LOG_LEVEL=debug
command: npm run start:schedule-emitter:local
# Schedule emitter
legacy-feed-bulk-converter-service:
extends:
file: docker-compose.base.yml
service: legacy-feed-bulk-converter-service
volumes:
- ./services/backend-api:/usr/src/app
- /usr/src/app/node_modules/
env_file:
- ./.env.local
environment:
- NODE_ENV=local
command: npm run start:legacy-feed-converter:local
# Web - Backend api
web-api:
extends:
file: docker-compose.base.yml
service: web-api
volumes:
- ./services/backend-api:/usr/src/app
- /usr/src/app/node_modules/
env_file:
- ./.env.local
environment:
- BACKEND_API_NODE_ENV=local
- BACKEND_API_USER_FEEDS_API_HOST=http://user-feeds-api:5000
- LOG_LEVEL=debug
command: npm run start:local
networks:
- monitorss-default
web-client:
extends:
file: docker-compose.base.yml
service: web-client
volumes:
mongodb-data:
feed-requests-postgres-data:
user-feeds-postgres-data:
feed-requests-redis-data:
fs-s3-storage-data:
driver: local
networks:
monitorss-default:
driver: bridge