-
-
Notifications
You must be signed in to change notification settings - Fork 62
/
tuleap.yml
117 lines (110 loc) · 3.63 KB
/
tuleap.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
version: '3.8'
x-tuleap-labels: &tuleap-labels
labels:
- traefik.enable=true
- traefik.docker.network=tuleap
- traefik.http.routers.tuleap-http.rule=Host(`tuleap.${DOMAIN?Variable DOMAIN not set}`)
- traefik.http.routers.tuleap-http.entrypoints=http
- traefik.http.routers.tuleap-http.service=tuleap
- traefik.http.routers.tuleap-http.middlewares=https-redirect
- traefik.http.routers.tuleap-https.rule=Host(`tuleap.${DOMAIN?Variable DOMAIN not set}`)
- traefik.http.routers.tuleap-https.entrypoints=https
- traefik.http.routers.tuleap-https.tls=true
- traefik.http.routers.tuleap-https.service=tuleap
- traefik.http.routers.tuleap-https.tls.certresolver=le
- traefik.http.services.tuleap.loadbalancer.server.port=443
- traefik.http.services.tuleap.loadbalancer.server.scheme=https
x-service: &service
logging:
driver: json-file
options:
max-size: "100m"
max-file: "2"
restart: always
networks:
- tuleap
services:
# https://tuleap.acms.asso.fr/doc/en/installation-guide/docker-image.html#docker-images-compose
# https://github.com/Enalean/tuleap/blob/master/tools/docker/tuleap-community-edition/Dockerfile
# passwords - "we recommend at least 20 chars but only alphabetical & numbers"
tuleap:
container_name: tuleap
image: tuleap/tuleap-community-edition
deploy:
mode: replicated
replicas: 1
resources:
reservations:
cpus: '0.01'
memory: 160M
<<: *tuleap-labels
<<: *tuleap-labels
<<: *service
ports:
- '2322:22'
environment:
TULEAP_FQDN: tuleap.${DOMAIN?Variable DOMAIN not set}
TULEAP_SYS_DBHOST: tuleap-mysql
TULEAP_SYS_DBPASSWD: ${TULEAP_SQL_PASSWORD?Variable TULEAP_SQL_PASSWORD not set}
SITE_ADMINISTRATOR_PASSWORD: ${PASSWORD?Variable PASSWORD not set}
#TULEAP_INSTALL_SKIP_DB: 1 # it doesn't work
DB_ADMIN_USER: root
DB_ADMIN_PASSWORD: ${TULEAP_SQL_PASSWORD?Variable TULEAP_SQL_PASSWORD not set}
#TULEAP_FPM_SESSION_MODE: redis
#TULEAP_REDIS_SERVER: redis
#TULEAP_EMAIL_RELAYHOST: mailhog:1025
#TULEAP_EMAIL_RELAYHOST: your-smtp.example.com:2025
volumes:
- tuleap-data:/data
depends_on:
- tuleap-mysql
healthcheck:
test: ["CMD", "/usr/bin/tuleap", "healthcheck"]
interval: 5s
timeout: 5s
retries: 10
start_period: 2s
tuleap-mysql:
container_name: tuleap-mysql
image: mysql:5.7
deploy:
mode: replicated
replicas: 1
resources:
reservations:
cpus: '0.25'
memory: 300M
placement:
constraints:
- node.hostname == ${HOSTNAME?Variable HOSTNAME not set}
<<: *service
command: ["--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci", "--sql-mode=NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"]
environment:
MYSQL_ROOT_PASSWORD: ${TULEAP_SQL_PASSWORD?Variable TULEAP_SQL_PASSWORD not set}
#MYSQL_DATABASE: tuleap
#MYSQL_USER: tuleapadm
#MYSQL_PASSWORD: ${TULEAP_SQL_PASSWORD?Variable TULEAP_SQL_PASSWORD not set}
volumes:
- tuleap-mysql-data:/var/lib/mysql
x-volume: &volume
driver: local
x-volume-driver-opts: &volume-driver-opts
type: none
o: bind
volumes:
tuleap-mysql-data:
name: tuleap-mysql-data
<<: *volume
driver_opts:
<<: *volume-driver-opts
device: ${DATAPATH?Variable DATAPATH not set}/tuleap-mysql/data
tuleap-data:
name: tuleap-data
<<: *volume
driver_opts:
<<: *volume-driver-opts
device: ${DATAPATH?Variable DATAPATH not set}/tuleap/data
networks:
tuleap:
name: tuleap
external: true