-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
81 lines (76 loc) · 1.91 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
version: '3'
services:
db:
image: mysql:5.7
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: issue_parser
MYSQL_USER: megastos
MYSQL_PASSWORD: root
rabbit:
image: rabbitmq:3.7.5
restart: unless-stopped
environment:
RABBITMQ_DEFAULT_USER: admin
RABBITMQ_DEFAULT_PASS: mypass
celery-beat:
build: .
links:
- rabbit
environment:
RABBIT_USERNAME: "admin"
RABBIT_PASSWORD: "mypass"
RABBIT_HOST: "rabbit"
SECRET: "de()5w1g2y-*4417f2x@em@g5d)i0@ae7w7!ay4n1dn6&1_@ge"
command: celery beat -A issue_parser -l warning
restart: unless-stopped
celery-worker:
build: .
links:
- rabbit
environment:
RABBIT_USERNAME: "admin"
RABBIT_PASSWORD: "mypass"
RABBIT_HOST: "rabbit"
DB_USER: "megastos"
DB_PASSWORD: "root"
DB_ENGINE: django.db.backends.mysql
DB_TABLE: issue_parser
DB_HOST: db
DB_PORT: 3306
SECRET: "de()5w1g2y-*4417f2x@em@g5d)i0@ae7w7!ay4n1dn6&1_@ge"
command: celery worker -A issue_parser -l warning
restart: unless-stopped
nginx:
image: nginx:1-alpine
ports:
- "8000:80"
volumes:
- static:/code/static:ro
- ./config/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./config/nginx.conf:/etc/nginx/nginx.conf:ro
restart: unless-stopped
links:
- web:web
web:
build: .
command: "sh -c ./docker-entrypoint.sh"
restart: unless-stopped
environment:
RABBIT_USERNAME: "admin"
RABBIT_PASSWORD: "mypass"
RABBIT_HOST: "rabbit"
DB_USER: "megastos"
DB_PASSWORD: "root"
DB_ENGINE: django.db.backends.mysql
DB_TABLE: issue_parser
DB_HOST: db
DB_PORT: 3306
SECRET: "de()5w1g2y-*4417f2x@em@g5d)i0@ae7w7!ay4n1dn6&1_@ge"
volumes:
- static:/code/static
links:
- db:db
volumes:
static: