-
Notifications
You must be signed in to change notification settings - Fork 244
/
Copy pathdocker-compose.yml
151 lines (135 loc) · 3.92 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
name: monitorss-prod
services:
bot-presence-service:
extends:
file: ./docker-compose.base.yml
service: bot-presence-service
image: ghcr.io/synzen/monitorss-bot-presence:main
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
image: ghcr.io/synzen/monitorss-discord-rest-listener:main
command: ["node", "build/app.js"]
env_file:
- ./.env.prod
environment:
- NODE_ENV=production
feed-requests-service:
extends:
file: ./docker-compose.base.yml
service: feed-requests-service
image: ghcr.io/synzen/monitorss-feed-requests:main
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
image: ghcr.io/synzen/monitorss-feed-requests:main
command: "npm run migration:up"
env_file:
- ./.env.prod
environment:
- NODE_ENV=production
user-feeds-service:
extends:
file: ./docker-compose.base.yml
service: user-feeds-service
image: ghcr.io/synzen/monitorss-user-feeds:main
command: ["node", "dist/main.js"]
env_file:
- ./.env.prod
environment:
- NODE_ENV=production
user-feeds-postgres-migration:
extends:
file: ./docker-compose.base.yml
service: user-feeds-postgres-migration
image: ghcr.io/synzen/monitorss-user-feeds:main
command: "npm run migration:up"
env_file:
- ./.env.prod
environment:
- NODE_ENV=production
legacy-feed-bulk-converter-service:
extends:
file: ./docker-compose.base.yml
service: legacy-feed-bulk-converter-service
image: ghcr.io/synzen/monitorss-monolith:main
command: ["node", "dist/scripts/legacy-feed-bulk-converter.js"]
env_file:
- ./.env.prod
environment:
- NODE_ENV=production
schedule-emitter-service:
extends:
file: ./docker-compose.base.yml
service: schedule-emitter-service
image: ghcr.io/synzen/monitorss-monolith:main
command: ["node", "dist/scripts/schedule-emitter.js"]
env_file:
- ./.env.prod
environment:
- NODE_ENV=production
monolith:
image: ghcr.io/synzen/monitorss-monolith:main
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-service: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
- NODE_ENV=production
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