-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-compose.yml
101 lines (93 loc) · 3.04 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: '2'
volumes:
postgres_data: {}
postgres_backup: {}
taiga_backend_media: {}
services:
postgresql:
image: postgres:10-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
- postgres_backup:/backups
environment:
- POSTGRES_USER=taiga
- POSTGRES_DB=taiga
- POSTGRES_PASSWORD=123
redis:
image: redis:4.0-alpine
rabbitmq:
image: rabbitmq:3.6-alpine
hostname: taiga_rabbitmq
environment:
# https://www.rabbitmq.com/clustering.html#erlang-cookie
- RABBITMQ_ERLANG_COOKIE='secret_cookie_here'
- RABBITMQ_DEFAULT_USER=taiga
- RABBITMQ_DEFAULT_PASS=taiga
- RABBITMQ_DEFAULT_VHOST=taiga
# http://www.rabbitmq.com/configure.html#config-items
# - RABBITMQ_HIPE_COMPILE=1
backend:
build: backend/
volumes:
- taiga_backend_media:/taiga_backend/media
- /taiga_backend/static-root
environment:
# - DJANGO_DEBUG=True
- DJANGO_SECRET_KEY=DJANGO_SECRET_KEY
# DJANGO_DB_* must have the same values as <postgresql> service
- DJANGO_DB_USER=taiga
- DJANGO_DB_NAME=taiga
- DJANGO_DB_PASSWORD=123
# - DJANGO_ALLOWED_HOSTS=example.com,example2.com
# Must be in lowercase, because we are using in a json file <frontend> (conf.json)
# - TAIGA_PUBLIC_REGISTER_ENABLED=false
# - TAIGA_SSL=True
# - TAIGA_HOSTNAME=example.com
# - TAIGA_SKIP_DB_CHECK=True
# checkdb.py
# - TAIGA_DB_CHECK_LIMIT_RETRIES='5'
# - TAIGA_DB_CHECK_SLEEP_INTERVAL='5.5'
# ANYMAIL
# - USE_ANYMAIL=True
# - ANYMAIL_MAILGUN_API_KEY=MAILGUN-KEY
user: taiga
entrypoint: ['/scripts/entrypoint.sh']
# command: ['gunicorn', '--worker-class', 'gevent', '--workers', '10', '-b', '0.0.0.0:8000', 'taiga.wsgi']
command: ['gunicorn', '-b', '0.0.0.0:8000', 'taiga.wsgi']
frontend:
build: frontend/
volumes_from:
- backend:ro
# environment:
# Must be in lowercase, because we are using in a json file (conf.json)
# - TAIGA_DEBUG=true
# - TAIGA_API_URL="http://example.com/api/v1/"
# - TAIGA_EVENTS_URL="ws://example.com/events"
# Must be in lowercase, because we are using in a json file (conf.json)
# - TAIGA_PUBLIC_REGISTER_ENABLED=false
# - DEFAULT_LANGUAGE="en"
ports:
- "80:80"
depends_on:
# It would be better to add 'postgres' to 'depends_on' on 'backend' service
# but 'celeryworker' extends 'backend' and we cannot extend a service
# if it is using 'depends_on'.
- postgresql
- backend
- events
celeryworker:
extends: backend
entrypoint: []
# command: ['celery', '-A', 'taiga', 'worker', '-c', '4', '--loglevel', 'info']
command: ['celery', '-A', 'taiga', 'worker', '-P', 'gevent', '-c', '4', '--loglevel', 'info']
depends_on:
- redis
- rabbitmq
events:
build: events/
environment:
# SAME AS DJANGO_SECRET_KEY
- TAIGA_SECRET=DJANGO_SECRET_KEY
depends_on:
- rabbitmq