-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduction.yml
205 lines (182 loc) · 4.67 KB
/
production.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
version: "3.8"
volumes:
clickhouse_data: {}
postgres_data: {}
elastic_data: {}
scheduler_data: {}
elk_data: {}
redis_data: {}
static_data: {}
services:
postgres:
image: postgres:14
env_file:
- ./.envs/.production/.postgres
volumes:
- postgres_data:/var/lib/postgresql/data
admin:
image: ghcr.io/stranded-in-python/movix-admin:latest
depends_on:
- postgres
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
volumes:
- static_data:/app/staticfiles
stdin_open: true
command: "/start"
redis:
image: redis:7.2-rc-bullseye
volumes:
- redis_data:/data
elastic:
image: elasticsearch:8.7.0
volumes:
- elastic_data:/usr/share/elasticsearch/data
env_file:
- ./.envs/.production/.elastic
ulimits:
memlock:
soft: -1
hard: -1
elastic-elk:
image: elasticsearch:8.7.0
volumes:
- elastic_data:/usr/share/elasticsearch/data
env_file:
- ./.envs/.production/.elastic
ulimits:
memlock:
soft: -1
logstash:
image: elastic/logstash:8.7.0
env_file:
- ./.envs/.local/.logstash
volumes:
- ./compose/production/logstash/logstash.conf:/config/logstash.conf:ro
command: logstash -f /config/logstash.conf
ports:
- "9045:9045"
kibana:
image: elastic/kibana:8.7.0
ports:
- "5601:5601"
environment:
ELASTICSEARCH_HOSTS: "http://elastic-elk:9200"
profiles:
- "all"
- "logging"
s2p:
image: ghcr.io/stranded-in-python/movix-s2p:latest
depends_on:
- admin
- postgres
command: "/start"
env_file:
- ./.envs/.production/.postgres
- ./.envs/.production/.django
etl:
image: ghcr.io/stranded-in-python/movix-etl:latest
restart: always
depends_on:
- postgres
- elastic
- admin
- s2p
- redis
env_file:
- ./.envs/.production/.postgres
- ./.envs/.production/.django
command: "/start"
api:
image: ghcr.io/stranded-in-python/movix-api:latest
depends_on:
- elastic
command: "/start"
env_file:
- ./.envs/.production/.api
auth:
image: ghcr.io/stranded-in-python/movix-etl:latest
depends_on:
- postgres
- redis
command: "/start"
env_file:
- ./.envs/.production/.auth
- ./.envs/.production/.postgres
jaeger:
image: jaegertracing/all-in-one:1.46.0
nginx:
image: nginx:latest
depends_on:
- postgres
- admin
- api
- etl
- auth
volumes:
- ./compose/production/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./compose/production/nginx/configs:/etc/nginx/conf.d:ro
- static_data:/data
ports:
- "80:80"
clickhouse:
build:
context: ./projects/movix-ugc/
dockerfile: ./compose/production/clickhouse/Dockerfile
env_file:
- ./.envs/.production/.clickhouse
volumes:
- clickhouse_data:/var/lib/clickhouse
ugc-api:
image: ghcr.io/stranded-in-python/movix-ugc:latest
command: "/start"
env_file:
- ./.envs/.production/.ugc
notification-rmq:
image: rabbitmq:3.6-management-alpine
notification-api:
image: ghcr.io/stranded-in-python/movix-notification-api:latest
command: "/start"
env_file:
- ./.envs/.production/.notification/.api
notification-scheduler:
image: ghcr.io/stranded-in-python/movix-notification-scheduler:latest
command: "/start"
volumes:
- scheduler_data:/etc/cron.d
env_file:
- ./.envs/.production/.notification/.scheduler
notification-worker:
image: ghcr.io/stranded-in-python/movix-notification-worker:latest
command: "/start"
env_file:
- ./.envs/.production/.notification/.worker
- ./.envs/.production/.notification/.rabbitmq
- ./.envs/.production/.notification/.postgres
depends_on:
- postgres
- notification-rmq
notification-shortener:
image: ghcr.io/stranded-in-python/movix-notification-shortener:latest
command: "/start"
env_file:
- ./.envs/.production/.notification/.shortener
- ./.envs/.production/.notification/.redis
depends_on:
- redis
notification-etl:
image: ghcr.io/stranded-in-python/movix-notification-etl:latest
command: "/start"
env_file:
- ./.envs/.production/.notification/.etl
- ./.envs/.production/.postgres
billing-api:
image: ghcr.io/stranded-in-python/movix-billing-api:latest
command: "/start"
env_file:
- ./.envs/.production/.billing/
- ./.envs/.production/.postgres
subscriptions-api:
image: ghcr.io/stranded-in-python/movix-subscription-api:latest
command: "/start"