-
Notifications
You must be signed in to change notification settings - Fork 4
/
local-docker-compose.yml
128 lines (118 loc) · 2.46 KB
/
local-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
version: '3.9'
services:
tor_proxy:
image: dockage/tor-privoxy:latest
container_name: tor_proxy
hostname: tor_proxy
restart: always
ports:
- "9050:9050"
- "9051:9051"
- "8118:8118"
networks:
- arbitration_web
redis:
restart: always
image: redis:latest
container_name: redis
networks:
- arbitration_web
db:
image: postgres:15.2-alpine
container_name: db
restart: always
volumes:
- db_arbitration:/var/lib/postgresql/data
env_file:
- .env
networks:
- arbitration_web
arbitration:
build:
context: ../arbitration
container_name: arbitration
restart: always
volumes:
- static_value:/arbitration/static/
depends_on:
- db
env_file:
- .env
networks:
- arbitration_web
nginx:
image: nginx:1.23.3-alpine
container_name: nginx
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/local_default.conf:/etc/nginx/conf.d/local_default.conf
- static_value:/var/html/static/
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
env_file:
- .env
depends_on:
- arbitration
networks:
- arbitration_web
celery-parsing:
restart: always
build:
context: ../arbitration
entrypoint: celery
command: -A arbitration worker --loglevel=ERROR -Q parsing -c 8 -n parsing_worker
env_file:
- .env
networks:
- arbitration_web
links:
- redis
depends_on:
- arbitration
- redis
celery-calculating:
restart: always
build:
context: ../arbitration
container_name: celery-calculating
entrypoint: celery
command: -A arbitration worker --loglevel=ERROR -Q calculating -c 3 -n calculating_worker
env_file:
- .env
networks:
- arbitration_web
links:
- redis
depends_on:
- arbitration
- redis
celery-beat:
restart: always
build:
context: ../arbitration
container_name: celery-beat
entrypoint: celery
command: -A arbitration beat --loglevel=ERROR
env_file:
- .env
networks:
- arbitration_web
links:
- celery-parsing
- celery-calculating
- redis
depends_on:
- celery-parsing
- celery-calculating
- redis
- tor_proxy
- nginx
networks:
arbitration_web:
driver: bridge
volumes:
db_arbitration:
static_value: