-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
99 lines (98 loc) · 3.63 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
# Base Docker-composition. For development, this composition is augmented in docker-compose.override.yml.
services:
www:
image: ictu/quality-time_proxy:${QUALITY_TIME_VERSION}
ports:
- "80:${PROXY_PORT:-80}"
environment:
- PROXY_PORT=${PROXY_PORT:-80}
- FRONTEND_HOST=${FRONTEND_HOST:-frontend}
- FRONTEND_PORT=${FRONTEND_PORT:-5000}
- API_SERVER_HOST=${API_SERVER_HOST:-api_server}
- API_SERVER_PORT=${API_SERVER_PORT:-5001}
volumes:
- "/etc/localtime:/etc/localtime:ro"
depends_on:
- api_server
- frontend
frontend:
image: ictu/quality-time_frontend:${QUALITY_TIME_VERSION}
environment:
- FRONTEND_PORT=${FRONTEND_PORT:-5000}
volumes:
- "/etc/localtime:/etc/localtime:ro"
depends_on:
- api_server
cap_drop:
- ALL
collector:
image: ictu/quality-time_collector:${QUALITY_TIME_VERSION}
environment:
- DATABASE_URL=${DATABASE_URL:-mongodb://root:root@database:27017}
- COLLECTOR_MEASUREMENT_FREQUENCY=${COLLECTOR_MEASUREMENT_FREQUENCY:-900}
- COLLECTOR_MEASUREMENT_LIMIT=${COLLECTOR_MEASUREMENT_LIMIT:-30}
- COLLECTOR_MEASUREMENT_TIMEOUT=${COLLECTOR_MEASUREMENT_TIMEOUT:-120}
- COLLECTOR_SLEEP_DURATION=${COLLECTOR_SLEEP_DURATION:-20}
- COLLECTOR_LOG_LEVEL=${COLLECTOR_LOG_LEVEL:-WARNING}
volumes:
- "/etc/localtime:/etc/localtime:ro"
depends_on:
- database
cap_drop:
- ALL
notifier:
image: ictu/quality-time_notifier:${QUALITY_TIME_VERSION}
environment:
- DATABASE_URL=${DATABASE_URL:-mongodb://root:root@database:27017}
- NOTIFIER_SLEEP_DURATION=${NOTIFIER_SLEEP_DURATION:-60}
- NOTIFIER_LOG_LEVEL=${NOTIFIER_LOG_LEVEL:-WARNING}
volumes:
- "/etc/localtime:/etc/localtime:ro"
depends_on:
- database
cap_drop:
- ALL
api_server:
image: ictu/quality-time_api_server:${QUALITY_TIME_VERSION}
environment:
- API_SERVER_PORT=${API_SERVER_PORT:-5001}
- API_SERVER_LOG_LEVEL=${API_SERVER_LOG_LEVEL:-WARNING}
- DATABASE_URL=${DATABASE_URL:-mongodb://root:root@database:27017}
- LDAP_URL=${LDAP_URL:-ldap://ldap:389}
- LDAP_ROOT_DN=${LDAP_ROOT_DN:-dc=example,dc=org}
- LDAP_LOOKUP_USER_DN=${LDAP_LOOKUP_USER_DN:-cn=admin,dc=example,dc=org}
- LDAP_LOOKUP_USER_PASSWORD=${LDAP_LOOKUP_USER_PASSWORD:-admin}
- LDAP_SEARCH_FILTER=${LDAP_SEARCH_FILTER:-(|(uid=$$username)(cn=$$username))}
- LOAD_EXAMPLE_REPORTS=${LOAD_EXAMPLE_REPORTS:-True}
- FORWARD_AUTH_ENABLED=${FORWARD_AUTH_ENABLED:-False}
- FORWARD_AUTH_HEADER=${FORWARD_AUTH_HEADER:-X-Forwarded-User}
- RENDERER_HOST=${RENDERER_HOST:-renderer}
- RENDERER_PORT=${RENDERER_PORT:-9000}
- USER_SESSION_DURATION=${USER_SESSION_DURATION:-120}
volumes:
- "/etc/localtime:/etc/localtime:ro"
depends_on:
- database
cap_drop:
- ALL
database:
image: ictu/quality-time_database:${QUALITY_TIME_VERSION}
command: --quiet
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME:-root}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD:-root}
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "dbdata:/data/db"
renderer:
image: ictu/quality-time_renderer:${QUALITY_TIME_VERSION}
environment:
- PROXY_HOST=${PROXY_HOST:-www}
- PROXY_PORT=${PROXY_PORT:-80}
- LC_ALL=${LC_ALL:-en_GB.UTF-8} # Set the date format in the PDF export to DD-MM-YYYY
- TZ=${TZ:-Europe/Amsterdam} # Make the PDF export use the correct timezone
volumes:
- "/etc/localtime:/etc/localtime:ro"
volumes:
dbdata: