-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
287 lines (278 loc) · 9.02 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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
version: '2.3'
services:
taiga_front:
image: monogramm/docker-taiga-front-base:latest
#hostname: taiga.${DOMAIN}
container_name: taiga_front
#restart: always
healthcheck:
test: curl --fail http://127.0.0.1:80/conf.json | grep -q -e '"api":' || exit 1
interval: 30s
timeout: 5s
#start_period: 5s
retries: 4
depends_on:
taiga_back:
condition: service_started
# To disable taiga-events, comment the following lines:
taiga_events:
condition: service_started
ports:
- "80:80"
- "443:443"
volumes:
# Media and uploads directory. Required for NGinx
- /srv/taiga/back/media:/usr/src/taiga-back/media:ro
- /srv/taiga/back/static:/usr/src/taiga-back/static:ro
# Taiga configuration directory. Makes it easier to change configuration with your own
#- /srv/taiga/front/conf:/taiga
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
# Your hostname (REQUIRED)
- TAIGA_HOSTNAME=localhost
#- TAIGA_HOSTNAME=taiga.${DOMAIN}
#- TAIGA_SSL=True
#- TAIGA_SSL_BY_REVERSE_PROXY=True
#- TAIGA_BACKEND_SSL=True
# Frontend settings
- TAIGA_DEBUG=false
- TAIGA_DEBUG_INFO=false
- TAIGA_DEFAULT_LANGUAGE=en
- TAIGA_DEFAULT_THEME=taiga
- TAIGA_PUBLIC_REGISTER_ENABLED=false
- TAIGA_FEEDBACK_ENABLED=True
- TAIGA_SUPPORT_URL=https://resources.taiga.io
- TAIGA_PRIVACY_POLICY_URL=
- TAIGA_TOS_URL=
- TAIGA_GDPR_URL=
- TAIGA_MAX_UPLOAD_SIZE=104857600
- TAIGA_CONTRIB_PLUGINS=
#- TAIGA_CONTRIB_PLUGINS='slack cookie-warning gitlab-auth github-auth'
- TAIGA_GRAVATAR=true
- TAIGA_LOGIN_FORM_TYPE=normal
# Backend settings
- TAIGA_BACK_HOST=taiga_back
- TAIGA_BACK_PORT=8001
# Events settings
- TAIGA_EVENTS_ENABLED=True
- TAIGA_EVENTS_HOST=taiga_events
- TAIGA_EVENTS_PORT=8888
taiga_back:
image: monogramm/docker-taiga-back-base:latest
#hostname: taiga
#domainname: taiga.${DOMAIN}
container_name: taiga_back
domainname: taiga
#restart: always
healthcheck:
test: CMD curl --fail http://127.0.0.1:8001/api/v1/ | grep -q -e '"auth":' || exit 1
interval: 60s
timeout: 10s
#start_period: 5s
retries: 4
depends_on:
taigadb:
condition: service_healthy
# To enable async mode, uncomment the following lines:
taiga_redis:
condition: service_started
ports:
- "8001:8001"
volumes:
# Media and uploads directory. Required (or you will lose all uploads)
- /srv/taiga/back/media:/usr/src/taiga-back/media
- /srv/taiga/back/static:/usr/src/taiga-back/static
# TODO Persist all backend sources to keep migrations, media and uploads
#- /srv/taiga/back/:/usr/src/taiga-back/
# Taiga configuration directory. Makes it easier to change configuration with your own
#- /srv/taiga/back/conf:/taiga
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
# Your hostname (REQUIRED)
- TAIGA_HOSTNAME=localhost
#- TAIGA_HOSTNAME=taiga.${DOMAIN}
#- TAIGA_SSL=False
#- TAIGA_SSL_BY_REVERSE_PROXY=True
# Secret key for cryptographic signing
#- TAIGA_SECRET_KEY=${TAIGA_SECRET}
# Admin account default password
#- TAIGA_ADMIN_PASSWORD=betterthan123123
# Database settings
- TAIGA_DB_HOST=taigadb
- TAIGA_DB_NAME=taiga
- TAIGA_DB_USER=taiga
- TAIGA_DB_PASSWORD=taiga
# when the db comes up from docker, it is usually too quick
- TAIGA_SLEEP=15
# To use an external SMTP for emails, fill in these values:
- TAIGA_ENABLE_EMAIL=True
- TAIGA_EMAIL_FROM=taiga@${TAIGA_EMAIL_DOMAIN}
- TAIGA_NOTIFICATIONS_INTERVAL=300
- TAIGA_EMAIL_USE_TLS=False
- TAIGA_EMAIL_HOST=mailcatcher
- TAIGA_EMAIL_PORT=1025
- TAIGA_EMAIL_USER=
- TAIGA_EMAIL_PASS=
# Backend settings
- TAIGA_DEBUG=False
- TAIGA_PUBLIC_REGISTER_ENABLED=False
- TAIGA_FEEDBACK_ENABLED=False
#- TAIGA_FEEDBACK_EMAIL=taiga@${TAIGA_EMAIL_DOMAIN}
# Events settings
- TAIGA_EVENTS_ENABLED=True
#- RABBIT_USER=${TAIGA_RABBIT_USER}
#- RABBIT_PASSWORD=${TAIGA_RABBIT_PASSWORD}
- RABBIT_VHOST=/
- RABBIT_HOST=taiga_rabbit
- RABBIT_PORT=5672
# Async settings
# To enable async mode, uncomment the following lines:
- TAIGA_ASYNC_ENABLED=True
- REDIS_HOST=taiga_redis
- REDIS_PORT=6379
taigadb:
image: postgres:10-alpine
container_name: taigadb
#restart: always
ports:
- "5432:5432"
healthcheck:
test: ["CMD", "pg_isready", "-U", "taiga"]
volumes:
- /srv/taiga/db/data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=taiga
- POSTGRES_USER=taiga
- POSTGRES_PASSWORD=taiga
# To enable async mode, uncomment the following lines:
taiga_celery:
image: monogramm/docker-taiga-back-base:latest
#hostname: taiga
#domainname: taiga.${DOMAIN}
container_name: taiga_celery
#restart: always
command: celery -A taiga worker --concurrency 4 -l ERROR
# TODO Run with taiga user
#command: celery -A taiga worker --uid taiga --gid taiga --concurrency 4 -l INFO
healthcheck:
test: celery -A taiga inspect ping --json | grep -q -e '"pong"' || exit 1
interval: 60s
timeout: 10s
#start_period: 5s
retries: 4
depends_on:
taigadb:
condition: service_healthy
# To enable async mode, uncomment the following lines:
taiga_rabbit:
condition: service_healthy
taiga_redis:
condition: service_started
volumes:
# Media and uploads directory. Required (or you will lose all uploads)
- /srv/taiga/back/media:/usr/src/taiga-back/media
- /srv/taiga/back/static:/usr/src/taiga-back/static
# Taiga configuration directory. Makes it easier to change configuration with your own
#- /srv/taiga/back/conf:/taiga
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
# Your hostname (REQUIRED)
- TAIGA_HOSTNAME=localhost
# Secret key for cryptographic signing
#- TAIGA_SECRET_KEY=${TAIGA_SECRET}
# Admin account default password
#- TAIGA_ADMIN_PASSWORD=betterthan123123
# Database settings
- TAIGA_SKIP_DB_CHECK=True
- TAIGA_DB_HOST=taigadb
- TAIGA_DB_NAME=taiga
- TAIGA_DB_USER=taiga
- TAIGA_DB_PASSWORD=taiga
# To use an external SMTP for emails, fill in these values:
- TAIGA_ENABLE_EMAIL=True
- TAIGA_EMAIL_FROM=taiga@${TAIGA_EMAIL_DOMAIN}
- TAIGA_NOTIFICATIONS_INTERVAL=300
- TAIGA_EMAIL_USE_TLS=False
- TAIGA_EMAIL_HOST=mailcatcher
- TAIGA_EMAIL_PORT=1025
- TAIGA_EMAIL_USER=
- TAIGA_EMAIL_PASS=
# Backend settings
- TAIGA_DEBUG=False
# Events settings
- TAIGA_EVENTS_ENABLED=True
#- RABBIT_USER=${TAIGA_RABBIT_USER}
#- RABBIT_PASSWORD=${TAIGA_RABBIT_PASSWORD}
- RABBIT_VHOST=/
- RABBIT_HOST=taiga_rabbit
- RABBIT_PORT=5672
# Async settings
# To enable async mode, uncomment the following lines:
- TAIGA_ASYNC_ENABLED=True
- REDIS_HOST=taiga_redis
- REDIS_PORT=6379
# FIXME Running a worker with superuser is a very bad idea!
- C_FORCE_ROOT=1
taiga_redis:
image: redis:4.0-alpine
container_name: taiga_redis
restart: always
healthcheck:
test: ["CMD", "redis-cli", "ping"]
ports:
- "6379:6379"
volumes:
- /srv/taiga/redis/:/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
# To disable taiga-events, comment all the following lines:
taiga_events:
image: monogramm/docker-taiga-events:latest
container_name: taiga_events
#restart: always
depends_on:
taiga_rabbit:
condition: service_healthy
links:
- taiga_rabbit
ports:
- "8888:8888"
environment:
#- RABBIT_USER=${TAIGA_RABBIT_USER}
#- RABBIT_PASSWORD=${TAIGA_RABBIT_PASSWORD}
- RABBIT_VHOST=/
- RABBIT_HOST=taiga_rabbit
- RABBIT_PORT=5672
#- TAIGA_EVENTS_SECRET=${TAIGA_SECRET}
- TAIGA_EVENTS_PORT=8888
taiga_rabbit:
image: rabbitmq:3-alpine
hostname: taiga_rabbit
container_name: taiga_rabbit
#restart: always
ports:
- "5672:5672"
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
timeout: 5s
retries: 1
#environment:
# - RABBITMQ_DEFAULT_USER=${TAIGA_RABBIT_USER}
# - RABBITMQ_DEFAULT_PASS=${TAIGA_RABBIT_PASSWORD}
# Test services (do not use in production)
# Simple mail service for testing
taiga_mailer:
image: sj26/mailcatcher:latest
hostname: taiga_mailer
container_name: taiga_mailer
restart: always
expose:
- '1025'
ports:
- "1080:1080"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro