-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
186 lines (186 loc) · 5.74 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
version: '3.4'
services:
pwr-ingress:
image: jonasal/nginx-certbot:latest
restart: "always"
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "20m"
environment:
CERTBOT_EMAIL: ${CERTBOT_EMAIL}
volumes:
- ./conf/nginx:/etc/nginx/user_conf.d
- ./letsencrypt:/etc/letsencrypt
ports:
- "80:80"
- "443:443"
pwr-edge-service:
image: docker.pkg.github.com/hbtgmbh/pwr-edge-service/pwr-edge-service:master
restart: 'always'
volumes:
- pwr-log-files:/var/logs
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "20m"
environment:
spring_application_name: pwr-edge-service
spring_http_multipart_max_file_size: 16MB
spring_http_multipart_max_request_size: 16MB
spring_security_oauth2_resourceserver_jwt_issuer-uri: ${OAUTH2_ISSUER_URI}
TZ: 'Europe/Berlin'
pwr_mariaDb:
image: mariadb:11
restart: 'always'
ports:
- 9010:3306
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "20m"
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
TZ: 'Europe/Berlin'
volumes:
- db-data:/var/lib/mysql
pwr-profile-service:
image: docker.pkg.github.com/hbtgmbh/pwr-profile-service/pwr-profile-service:master
restart: 'always'
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "20m"
environment:
DB_USER: ${PROFILE_DB_USER}
DB_PASS: ${PROFILE_DB_PASS}
DB_URL: jdbc:mariadb://pwr_mariaDb:3306/profile
DB_DRIVER_CLASS_NAME: org.mariadb.jdbc.Driver
DB_HIBERNATE_DDL_AUTO: none
TZ: 'Europe/Berlin'
depends_on:
- pwr_mariaDb
pwr_webclient:
image: docker.pkg.github.com/hbtgmbh/pwr-webclient/pwr-webclient:master
restart: 'always'
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "20m"
environment:
POWER_PROFILE_SERVICE_URL: https://${POWER_HOST}/api/pwr-profile-service
POWER_SKILL_SERVICE_URL: https://${POWER_HOST}/api/pwr-skill-service
POWER_VIEW_PROFILE_SERVICE_URL: https://${POWER_HOST}/api/pwr-view-profile-service
POWER_REPORT_SERVICE_URL: https://${POWER_HOST}/api/pwr-report-service
POWER_STATISTICS_SERVICE_URL: https://${POWER_HOST}/api/pwr-statistics-service
POWER_LOCALE_PATH: https://${POWER_HOST}/localization
POWER_IMAGE_PATH: /img
POWER_AZURE_TENANT_ID: ${POWER_AZURE_TENANT_ID}
POWER_AZURE_CLIENT_ID: ${POWER_AZURE_CLIENT_ID}
pwr-skill-service:
image: docker.pkg.github.com/hbtgmbh/pwr-skill-service/pwr-skill-service:master
restart: 'always'
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "20m"
environment:
DB_USER: ${SKILL_DB_USER}
DB_PASS: ${SKILL_DB_PASS}
DB_URL: jdbc:mariadb://pwr_mariaDb:3306/skill
DB_DRIVER_CLASS_NAME: org.mariadb.jdbc.Driver
DB_HIBERNATE_DDL_AUTO: none
TZ: 'Europe/Berlin'
volumes:
- lucene-data:/lucene-data
depends_on:
- pwr_mariaDb
pwr-view-profile-service:
image: docker.pkg.github.com/hbtgmbh/pwr-view-profile-service/pwr-view-profile-service:master
restart: 'always'
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "20m"
environment:
DB_DATABASE: 4
DB_PORT: 6379
DB_HOST: view_profile_service_db
SPRING_REDIS_PASSWORD: ${VIEW_PROFILE_DB_PASS}
TZ: 'Europe/Berlin'
depends_on:
- view_profile_service_db
view_profile_service_db:
image: redis:alpine
restart: 'always'
command: redis-server --requirepass ${VIEW_PROFILE_DB_PASS}
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "20m"
volumes:
- "./conf/redis.conf:/usr/local/etc/redis/redis.conf"
- "./rdb-data:/data"
pwr-report-service:
image: docker.pkg.github.com/hbtgmbh/pwr-report-service/pwr-report-service:master
restart: 'always'
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "20m"
environment:
DB_USER: ${REPORT_DB_USER}
DB_PASS: ${REPORT_DB_PASS}
DB_URL: jdbc:mariadb://pwr_mariaDb:3306/report
DB_DRIVER_CLASS_NAME: org.mariadb.jdbc.Driver
DB_HIBERNATE_DDL_AUTO: none
PWR_REPORT_FILE_PATH: /var/pwr
LOGGING_LEVEL_DE_HBT: 'DEBUG'
# Image location needs to contain a %s; %s is substituted for the initials to
# resolve the profile picture. Someone should definitely fix this...
EXPORT_IMGLOCATION: /var/pwr/images/foto_%s.jpg
TZ: 'Europe/Berlin'
volumes:
- ./report-data/datasource.xml:/var/pwr/xml/datasource.xml
- /var/www/data/img/profile_pictures:/var/pwr/images # We need to mount the images because, for now, nginx has to deliver them, too
depends_on:
- pwr_mariaDb
pwr-statistics-service:
image: docker.pkg.github.com/hbtgmbh/pwr-statistics-service/pwr-statistics-service:master
restart: 'always'
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "20m"
environment:
DB_HOST: view_profile_service_db
DB_PORT: 6379
DB_DATABASE: 0
DB_PASSWORD: ${VIEW_PROFILE_DB_PASS}
watchtower: #watchtower auto-updates our containers; It checks every 5 minutes.
image: containrrr/watchtower
restart: 'always'
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "20m"
environment:
REPO_USER: ${GITHUB_REPO_USER}
REPO_PASS: ${GITHUB_REPORT_PASS} # access token with permissions package=read
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
pwr-log-files: {}
db-data: {}
lucene-data: {}