-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
84 lines (75 loc) · 1.81 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
82
83
84
version: "2"
services:
frontend:
build:
context: .
dockerfile: Dockerfile-frontend
depends_on:
- mongo
- redis
- celery
command: gunicorn -k gevent -b 0.0.0.0:5002 xssp_api.application:app
ports:
- "5002:5002"
environment:
- XSSP_API_SETTINGS=/usr/src/app/prd_settings.py
- LOG_FILENAME=/var/log/xssp_api/xssp_web.log
volumes:
- "/mnt/chelonium:/mnt/chelonium"
- "/srv/xssp:/srv"
- "/var/log/xssp_api:/var/log/xssp_api"
volumes_from:
- data
celery-beat:
build:
context: .
dockerfile: Dockerfile-celery
depends_on:
- mongo
- rabbitmq
- redis
command: celery -A xssp_api.application:celery beat
environment:
- XSSP_API_SETTINGS=/usr/src/app/prd_settings.py
- LOG_FILENAME=/var/log/xssp_api/xssp_celery.log
volumes:
- "/var/log/xssp_api:/var/log/xssp_api"
volumes_from:
- data
celery:
build:
context: .
dockerfile: Dockerfile-celery
depends_on:
- mongo
- rabbitmq
- redis
command: celery -A xssp_api.application:celery worker -B -n xssp.%n -c 10
environment:
- XSSP_API_SETTINGS=/usr/src/app/prd_settings.py
- LOG_FILENAME=/var/log/xssp_api/xssp_celery.log
volumes:
- "/var/log/xssp_api:/var/log/xssp_api"
- "/mnt/chelonium:/mnt/chelonium"
- "/srv/xssp:/srv"
volumes_from:
- data
databanks:
build:
context: .
dockerfile: Dockerfile-databanks
command: ./schedule_updates.bash
volumes:
- "/var/log/xssp_api:/var/log/xssp_api"
- "/mnt/chelonium:/mnt/chelonium"
- "/srv/xssp:/srv"
redis:
image: redis
rabbitmq:
image: rabbitmq
mongo:
image: mongo:4.2
data:
image: tianon/true
volumes:
- /tmp/xssp-api