forked from synzen/MonitoRSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
175 lines (158 loc) · 4.3 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
version: "3.8"
name: monitorss-prod
services:
bot-presence-service:
extends:
file: ./docker-compose.base.yml
service: bot-presence-service
build:
context: services/bot-presence
dockerfile: Dockerfile
target: prod
command: ["node", "dist/main.js"]
env_file:
- ./.env.prod
feed-requests-redis-cache:
extends:
file: ./docker-compose.base.yml
service: feed-requests-redis-cache
rabbitmq-broker:
extends:
file: ./docker-compose.base.yml
service: rabbitmq-broker
mongo:
extends:
file: ./docker-compose.base.yml
service: mongo
feed-requests-postgres-db:
extends:
file: ./docker-compose.base.yml
service: feed-requests-postgres-db
user-feeds-postgres-db:
extends:
file: ./docker-compose.base.yml
service: user-feeds-postgres-db
discord-rest-listener-service:
extends:
file: ./docker-compose.base.yml
service: discord-rest-listener-service
build:
context: services/discord-rest-listener
dockerfile: Dockerfile
target: prod
command: ["node", "build/app.js"]
env_file:
- ./.env.prod
feed-requests-service:
extends:
file: ./docker-compose.base.yml
service: feed-requests-service
build:
context: services/feed-requests
dockerfile: Dockerfile
target: prod
command: ["node", "dist/main.js"]
env_file:
- ./.env.prod
environment:
- NODE_ENV=production
feed-requests-api:
extends:
file: ./docker-compose.base.yml
service: feed-requests-api
build:
context: services/feed-requests
dockerfile: Dockerfile
target: prod
command: ["node", "dist/main.js"]
env_file:
- ./.env.prod
environment:
- NODE_ENV=production
feed-requests-postgres-migration:
extends:
file: ./docker-compose.base.yml
service: feed-requests-postgres-migration
build:
context: services/feed-requests
dockerfile: Dockerfile
target: build
command: "npm run migration:local:up"
env_file:
- ./.env.prod
user-feeds-service:
extends:
file: ./docker-compose.base.yml
service: user-feeds-service
build:
context: services/user-feeds
dockerfile: Dockerfile
target: prod
command: ["node", "dist/main.js"]
env_file:
- ./.env.prod
user-feeds-postgres-migration:
extends:
file: ./docker-compose.base.yml
service: user-feeds-postgres-migration
env_file:
- ./.env.prod
legacy-feed-bulk-converter-service:
extends:
file: ./docker-compose.base.yml
service: legacy-feed-bulk-converter-service
build:
context: services/backend-api
dockerfile: dockerfiles/legacy-feed-bulk-converter/Dockerfile
target: prod
command: ["node", "dist/scripts/legacy-feed-bulk-converter.js"]
env_file:
- ./.env.prod
schedule-emitter-service:
extends:
file: ./docker-compose.base.yml
service: schedule-emitter-service
build:
context: services/backend-api
dockerfile: dockerfiles/schedule-emitter/Dockerfile
target: prod
command: ["node", "dist/scripts/schedule-emitter.js"]
env_file:
- ./.env.prod
monolith:
build:
context: services/backend-api
dockerfile: dockerfiles/web/mixed.Dockerfile
target: prod
restart: on-failure:3
depends_on:
- mongo
- user-feeds-service
- feed-requests-service
ports:
- "8000:8000"
env_file:
- ./.env.prod
environment:
- BACKEND_API_NODE_ENV=local
- BACKEND_API_PORT=8000
- BACKEND_API_DEFAULT_MAX_FEEDS=999999
- BACKEND_API_USER_FEEDS_API_HOST=http://user-feeds-service:5000
- BACKEND_API_FEED_REQUESTS_API_HOST=http://feed-requests-api:5000
- BACKEND_API_FEED_USER_AGENT=MonitoRSS
- BACKEND_API_RABBITMQ_BROKER_URL=amqp://guest:guest@rabbitmq-broker:5672/
- BACKEND_API_USER_FEEDS_API_KEY=user-feeds-api-key
- BACKEND_API_FEED_REQUESTS_API_KEY=feed-requests-api-key
- LOG_LEVEL=info
command: ["node", "dist/main.js"]
networks:
- monitorss-default
volumes:
mongodb-data:
feed-requests-postgres-data:
user-feeds-postgres-data:
feed-requests-redis-data:
driver: local
networks:
monitorss-default:
driver: bridge