-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
101 lines (99 loc) · 2.24 KB
/
docker-compose.prod.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
volumes:
movies_admin_media_data:
movies_admin_static_data:
services:
movies_admin:
build:
dockerfile: Dockerfile.prod
command: gunicorn config.wsgi:application --bind 0.0.0.0:8000
volumes:
- movies_admin_media_data:/home/app/web/mediafiles
- movies_admin_static_data:/home/app/web/staticfiles
expose:
- 8000
env_file:
- ./envs/env.prod
movies_film_etl:
build:
dockerfile: Dockerfile.prod
env_file:
- ./envs/env.prod
movies_person_etl:
build:
dockerfile: Dockerfile.prod
env_file:
- ./envs/env.prod
movies_genre_etl:
build:
dockerfile: Dockerfile.prod
env_file:
- ./envs/env.prod
movies_async_api:
build:
dockerfile: Dockerfile.prod
command: gunicorn -w 4 -k uvicorn.workers.UvicornWorker main:app --bind 0.0.0.0:8000
expose:
- 8000
env_file:
- ./envs/env.prod
movies_auth:
build:
dockerfile: Dockerfile.prod
command: gunicorn --worker-class gevent -w 4 pywsgi:app --bind 0.0.0.0:5000
expose:
- 5000
env_file:
- ./envs/env.prod
elasticsearch:
expose:
- 9200
env_file:
- ./envs/env.prod
postgres:
env_file:
- ./envs/env.prod
redis:
expose:
- 6379
env_file:
- ./envs/env.prod
postgres_auth:
expose:
- 5432
env_file:
- ./envs/env.prod
redis_auth:
expose:
- 6379
env_file:
- ./envs/env.prod
nginx:
build: ./services/nginx
container_name: nginx
volumes:
- movies_admin_media_data:/home/app/web/mediafiles
- movies_admin_static_data:/home/app/web/staticfiles
ports:
- "1337:80"
depends_on:
- movies_admin
- movies_async_api
movies_streaming_admin:
build:
dockerfile: Dockerfile.prod
command: gunicorn config.wsgi:application --bind 0.0.0.0:8000
expose:
- 8000
env_file:
- ./envs/.env.streaming.prod
movies_streaming_converter_api:
build:
dockerfile: Dockerfile.prod
command: gunicorn -w 4 -k uvicorn.workers.UvicornWorker main:app --bind 0.0.0.0:8000
expose:
- 8000
env_file:
- ./envs/.env.streaming.prod
postgres_streaming:
env_file:
- ./envs/.env.streaming.prod