-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose-debug.yml
86 lines (77 loc) · 1.8 KB
/
docker-compose-debug.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
version: '3'
services:
db:
image: mdillon/postgis
volumes:
- .:/code
ports:
- "5432:5432"
web:
build: .
volumes:
- .:/code
- /tmp/media:/tmp/media
ports:
- "8000:8000"
links:
- db
- pdf
depends_on:
- db
- pdf
- redis
- sentinel01
- celery
hostname: web
shm_size: 1g
environment:
- "DJANGO_LIVE_TEST_SERVER_ADDRESS=web:8081-8181"
- "REDIS_MASTER=django"
- "REDIS_HOST=sentinel01"
- "SKIP_DJANGO_COLLECSTATIC=1"
- "SKIP_DJANGO_MIGRATE=1"
- "SKIP_REQUIREMENTS_CHECK=1"
stdin_open: true # Make sure stdin_open is true
tty: true # Make sure tty is true
celery:
build: .
volumes:
- .:/code
- /tmp/media:/tmp/media
links:
- db
- redis
- sentinel01
- pdf
depends_on:
- db
- pdf
- redis
- sentinel01
environment:
- "SKIP_DJANGO_COLLECSTATIC=1"
- "SKIP_DJANGO_MIGRATE=1"
- "SKIP_REQUIREMENTS_CHECK=1"
- "REDIS_MASTER=django"
- "REDIS_HOST=sentinel01"
- "WAIT_HOSTS_TIMEOUT=1200"
- "WAIT_SLEEP_INTERVAL=60"
command: "celery worker -A jorvik -l info -Q queue_elastic,queue_monitoraggio,queue_formazione,coda_email_rischedula,coda_email_invio,queue_monitoraggio,periodic_ufficio_soci,shared_ufficio_soci -B"
redis:
image: 'bitnami/redis:latest'
environment:
- "ALLOW_EMPTY_PASSWORD=yes"
- "REDIS_MASTER_SET=django"
sentinel01:
image: 'bitnami/redis-sentinel:latest'
links:
- redis
depends_on:
- redis
environment:
- "REDIS_MASTER_HOST=redis"
- "REDIS_MASTER_SET=django"
ports:
- "26379:26739"
pdf:
build: https://github.com/CroceRossaItaliana/gaia-dompdf.git#master