forked from douglas/taiga-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
130 lines (122 loc) · 3.32 KB
/
docker-compose.yml
File metadata and controls
130 lines (122 loc) · 3.32 KB
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
129
130
version: '2.1'
volumes:
postgres_data: {}
taiga_backend_media: {}
services:
# Redis Server
redis:
image: redis:3.2.8-alpine
container_name: taiga-redis
healthcheck:
test: "exit 0"
# RabbitMQ Server
rabbitmq:
image: rabbitmq:3.6.8-alpine
container_name: taiga-rabbitmq
ports:
- "15672:15672" # here, we can access rabbitmq management plugin
environment:
- RABBITMQ_ERLANG_COOKIE='secret_cookie_here'
- RABBITMQ_DEFAULT_USER=taiga
- RABBITMQ_DEFAULT_PASS=taiga
- RABBITMQ_DEFAULT_VHOST=taiga
healthcheck:
test: "exit 0"
# PostgreSQL Server
postgresql:
container_name: taiga-postgres
image: postgres:9.6.2-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=taiga
- POSTGRES_DB=taiga
- POSTGRES_PASSWORD=123
healthcheck:
test: "exit 0"
# Taiga Events
events:
container_name: taiga-events
build: services/events/
environment:
- TAIGA_SECRET=DJANGO_SECRET_KEY
entrypoint: ['/scripts/entrypoint.sh']
command: ['coffee', 'index.coffee']
depends_on:
rabbitmq:
condition: service_healthy
# Django (Taiga backend and api server)
backend:
build: taiga-back
container_name: taiga-backend
volumes:
- ./taiga-back:/taiga_backend
- ./services/backend/scripts:/backend_scripts
- taiga_backend_media:/taiga_backend/media
- /taiga_backend/static-root
environment:
- DJANGO_DEBUG=True
- DJANGO_SECRET_KEY=DJANGO_SECRET_KEY
- DJANGO_DB_USER=taiga
- DJANGO_DB_NAME=taiga
- DJANGO_DB_PASSWORD=123
- DJANGO_ALLOWED_HOSTS=taiga.dev,localhost,127.0.0.1
- CELERY=False
- TRELLO=False
#- TRELLO_API_KEY=
#- TRELLO_SECRET_KEY=
#- SMTP=True
#- EMAIL_USE_TLS=True
#- EMAIL_HOST=localhost
#- EMAIL_PORT=587
#- EMAIL_HOST_USER=
#- EMAIL_HOST_PASSWORD=
#- DEFAULT_FROM_EMAIL='Taiga <taiga@localhost>'
#- LDAP=True
#- LDAP_SERVER=ldaps://
#- LDAP_PORT=636
#- LDAP_BIND_DN=uid=
#- LDAP_BIND_PASSWORD=
#- LDAP_SEARCH_BASE=dc=br
#- LDAP_SEARCH_PROPERTY=uid
#- LDAP_SEARCH_SUFFIX= ''
#- LDAP_EMAIL_PROPERTY= 'mail'
#- LDAP_FULL_NAME_PROPERTY= 'cn'
entrypoint: ['/backend_scripts/entrypoint.sh']
command: ['gunicorn', '-b', '0.0.0.0:8000', 'taiga.wsgi']
depends_on:
postgresql:
condition: service_healthy
celery:
condition: service_healthy
# Taiga Frontend
frontend:
image: nginx:1.11.10-alpine
container_name: taiga-frontend
volumes:
- ./taiga-front:/taiga_frontend
- ./services/frontend:/frontend
volumes_from:
- backend:ro
ports:
- "80:80"
environment:
- LOGIN_FORM_TYPE=normal
- TRELLO=False
entrypoint: ['/frontend/scripts/entrypoint.sh']
command: ["nginx", "-g", "daemon off;"]
# Celery worker
celery:
build: services/celery
container_name: taiga-celery
volumes:
- ./taiga-back:/taiga_backend
user: taiga
command: ['celery', '-A', 'taiga', 'worker', '-c', '4', '--loglevel', 'info']
healthcheck:
test: "exit 0"
depends_on:
rabbitmq:
condition: service_healthy
redis:
condition: service_healthy