forked from elPeroN/CAS-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.taiga.yml
187 lines (170 loc) · 5.22 KB
/
docker-compose.taiga.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
version: '3.7'
x-environment:
&taiga-default-back-environment
# These environment variables will be used by taiga-back and taiga-async.
# Database settings
POSTGRES_DB: "${TAIGA_POSTGRES_DB}"
POSTGRES_USER: "${TAIGA_POSTGRES_USER}"
POSTGRES_PASSWORD: "${TAIGA_POSTGRES_PASSWORD}"
POSTGRES_HOST: "taiga-db"
# Taiga settings
TAIGA_SECRET_KEY: "${TAIGA_SECRET_KEY}"
TAIGA_SITES_SCHEME: "${TAIGA_SCHEME}"
TAIGA_SITES_DOMAIN: "${TAIGA_DOMAIN}"
TAIGA_SUBPATH: "${TAIGA_SUBPATH}"
# Email settings.
EMAIL_BACKEND: "django.core.mail.backends.${TAIGA_EMAIL_BACKEND}.EmailBackend"
DEFAULT_FROM_EMAIL: "${TAIGA_EMAIL_DEFAULT_FROM}"
EMAIL_USE_TLS: "${TAIGA_EMAIL_USE_TLS}"
EMAIL_USE_SSL: "${TAIGA_EMAIL_USE_SSL}"
EMAIL_HOST: "${TAIGA_EMAIL_HOST}"
EMAIL_PORT: "${TAIGA_EMAIL_PORT}"
EMAIL_HOST_USER: "${TAIGA_EMAIL_HOST_USER}"
EMAIL_HOST_PASSWORD: "${TAIGA_EMAIL_HOST_PASSWORD}"
# Rabbitmq settings
RABBITMQ_USER: "${TAIGA_RABBITMQ_USER}"
RABBITMQ_PASS: "${TAIGA_RABBITMQ_PASS}"
# Telemetry settings
ENABLE_TELEMETRY: "${TAIGA_ENABLE_TELEMETRY}"
# ...your customizations go here
PUBLIC_REGISTER_ENABLED: "True"
## to enable http
SESSION_COOKIE_SECURE: "False"
CSRF_COOKIE_SECURE: "False"
x-volumes:
&default-back-volumes
# These volumens will be used by taiga-back and taiga-async.
- taiga-static-data:/taiga-back/static
- taiga-media-data:/taiga-back/media
# - ./config.py:/taiga-back/settings/config.py
services:
taiga-db:
image: postgres:12.3
container_name: taiga-db
restart: unless-stopped
environment:
POSTGRES_DB: "${TAIGA_POSTGRES_DB}"
POSTGRES_USER: "${TAIGA_POSTGRES_USER}"
POSTGRES_PASSWORD: "${TAIGA_POSTGRES_PASSWORD}"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${TAIGA_POSTGRES_USER}"]
interval: 2s
timeout: 15s
retries: 5
start_period: 3s
networks:
taiga:
volumes:
- taiga-db-data:/var/lib/postgresql/data
taiga-back:
image: taigaio/taiga-back:latest
container_name: taiga-back
environment: *taiga-default-back-environment
depends_on:
taiga-db:
condition: service_healthy
taiga-events-rabbitmq:
condition: service_started
taiga-async-rabbitmq:
condition: service_started
networks:
default:
ipv4_address: ${DFLT_IP_TAIGA_BACK}
taiga:
volumes: *default-back-volumes
taiga-async:
image: taigaio/taiga-back:latest
container_name: taiga-async
entrypoint: ["/taiga-back/docker/async_entrypoint.sh"]
environment: *taiga-default-back-environment
depends_on:
taiga-db:
condition: service_healthy
taiga-events-rabbitmq:
condition: service_started
taiga-async-rabbitmq:
condition: service_started
networks:
taiga:
volumes: *default-back-volumes
taiga-async-rabbitmq:
image: rabbitmq:3.8-management-alpine
container_name: taiga-async-rabbitmq
environment:
RABBITMQ_ERLANG_COOKIE: "${TAIGA_RABBITMQ_ERLANG_COOKIE}"
RABBITMQ_DEFAULT_USER: "${TAIGA_RABBITMQ_USER}"
RABBITMQ_DEFAULT_PASS: "${TAIGA_RABBITMQ_PASS}"
RABBITMQ_DEFAULT_VHOST: "${TAIGA_RABBITMQ_VHOST}"
hostname: "taiga-async-rabbitmq"
volumes:
- taiga-async-rabbitmq-data:/var/lib/rabbitmq
networks:
taiga:
taiga-front:
image: taigaio/taiga-front:latest
container_name: taiga-front
restart: unless-stopped
environment:
URL: "${TAIGA_SCHEME}://${TAIGA_DOMAIN}"
WEBSOCKETS_URL: "${TAIGA_WEBSOCKETS_SCHEME}://${TAIGA_DOMAIN}"
SUBPATH: "${TAIGA_SUBPATH}"
# ...your customizations go here
PUBLIC_REGISTER_ENABLED: "true"
networks:
default:
ipv4_address: ${DFLT_IP_TAIGA}
taiga:
# volumes:
# - ./conf.json:/usr/share/nginx/html/conf.json
taiga-events:
image: taigaio/taiga-events:latest
container_name: taiga-events
restart: unless-stopped
environment:
RABBITMQ_USER: "${TAIGA_RABBITMQ_USER}"
RABBITMQ_PASS: "${TAIGA_RABBITMQ_PASS}"
SECRET_KEY: "${TAIGA_SECRET_KEY}"
networks:
default:
ipv4_address: ${DFLT_IP_TAIGA_EVENTS}
taiga:
depends_on:
taiga-events-rabbitmq:
condition: service_started
taiga-events-rabbitmq:
image: rabbitmq:3.8-management-alpine
container_name: taiga-rabbit
restart: unless-stopped
environment:
RABBITMQ_ERLANG_COOKIE: "${TAIGA_RABBITMQ_ERLANG_COOKIE}"
RABBITMQ_DEFAULT_USER: "${TAIGA_RABBITMQ_USER}"
RABBITMQ_DEFAULT_PASS: "${TAIGA_RABBITMQ_PASS}"
RABBITMQ_DEFAULT_VHOST: "${TAIGA_RABBITMQ_VHOST}"
hostname: "taiga-events-rabbitmq"
volumes:
- taiga-events-rabbitmq-data:/var/lib/rabbitmq
networks:
taiga:
taiga-protected:
image: taigaio/taiga-protected:latest
container_name: taiga-protected
environment:
MAX_AGE: "${TAIGA_ATTACHMENTS_MAX_AGE}"
SECRET_KEY: "${TAIGA_SECRET_KEY}"
networks:
default:
ipv4_address: ${DFLT_IP_TAIGA_PROTECTED}
taiga:
networks:
default:
name: ${NETWORK_NAME_DFLT}
external: true
taiga:
name: taiga-network
volumes:
#taiga dirs
taiga-static-data:
taiga-media-data:
taiga-db-data:
taiga-async-rabbitmq-data:
taiga-events-rabbitmq-data: