This repository was archived by the owner on Jun 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
61 lines (60 loc) · 1.61 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
version: "3.8"
services:
web:
image: gr1902/web
build:
context: .
dockerfile: prod.Dockerfile
env_file:
- .env.prod
command: .docker/gunicorn_start.sh
expose:
- 8000
volumes:
- ./core/utils/webshare_proxies.txt:/home/gr1902/mp_sales_updater/core/utils/webshare_proxies.txt
- ./logs:/home/gr1902/mp_sales_updater/logs
- static_volume:/home/gr1902/mp_sales_updater/static
- media_volume:/home/gr1902/mp_sales_updater/media
restart: always
depends_on:
- db
item_update:
image: gr1902/web
build:
context: .
dockerfile: prod.Dockerfile
env_file:
- .env.prod
command: ./manage.py update_data wildberries items --cpu_multiplayer 0.8
volumes:
- ./core/utils/webshare_proxies.txt:/home/gr1902/mp_sales_updater/core/utils/webshare_proxies.txt
- ./logs:/home/gr1902/mp_sales_updater/logs
- static_volume:/home/gr1902/mp_sales_updater/static
- media_volume:/home/gr1902/mp_sales_updater/media
restart: "no"
depends_on:
- db
db:
image: postgres:12.4
volumes:
- postgres_data:/var/lib/postgresql/data/:delegated
env_file:
- .docker/db.env
restart: always
nginx:
build: ./nginx
ports:
- 80:80
- 443:443
volumes:
- static_volume:/home/gr1902/mp_sales_updater/static
- media_volume:/home/gr1902/mp_sales_updater/media
- ./magic-stat.ru.crt:/etc/ssl/magic-stat.ru.crt
- ./magic-stat.ru.key:/etc/ssl/magic-stat.ru.key
depends_on:
- web
restart: always
volumes:
postgres_data:
static_volume:
media_volume: