-
Notifications
You must be signed in to change notification settings - Fork 11
/
redmine-compose.yml
79 lines (79 loc) · 1.8 KB
/
redmine-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
version: '2.1'
networks:
ci-network:
proxy-network:
external:
name: "${PROXY_NETWORK}"
volumes:
pg-redmine-volume:
driver: "${VOLUME_DRIVER}"
redmine-data-volume:
driver: "${VOLUME_DRIVER}"
redmine-log-volume:
driver: "${VOLUME_DRIVER}"
services:
proxy:
image: openfrontier/nginx:${NGINX_VERSION}
restart: unless-stopped
logging:
driver: "journald"
networks:
- ci-network
- proxy-network
ports:
- "80"
depends_on:
- "gerrit"
- "jenkins"
- "nexus"
- "redmine"
environment:
SERVER_NAME: ${PROXY_HOST}
CLIENT_MAX_BODY_SIZE: 200m
pg-redmine:
image: postgres:${POSTGRES_VERSION}
restart: unless-stopped
logging:
driver: "journald"
networks:
- ci-network
ports:
- "5432"
volumes:
- pg-redmine-volume:/var/lib/postgresql/data
environment:
constraint:volume.driver: =${VOLUME_DRIVER}
POSTGRES_USER: redmine
POSTGRES_PASSWORD: redmine
POSTGRES_DB: redmine
redmine:
image: sameersbn/redmine:${REDMINE_VERSION}
restart: unless-stopped
logging:
driver: "journald"
dns:
- ${DNS_SERVER}
networks:
ci-network:
ports:
- "80"
volumes:
- redmine-log-volume:/var/log/redmine
- redmine-data-volume:/home/redmine/data
depends_on:
- "pg-redmine"
environment:
constraint:volume.driver: =${VOLUME_DRIVER}
DB_ADAPTER: postgresql
DB_HOST: pg-redmine
DB_NAME: redmine
DB_USER: redmine
DB_PASS: redmine
REDMINE_RELATIVE_URL_ROOT: /redmine
REDMINE_FETCH_COMMITS: hourly
SMTP_DOMAIN: ${RELAY_MYDOMAIN}
SMTP_HOST: ${SMTP_SERVER}
SMTP_PORT: ${SMTP_PORT}
SMTP_USER: ${SMTP_USER}
SMTP_PASS: ${SMTP_PASS}
NGINX_MAX_UPLOAD_SIZE: 200m