-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
96 lines (89 loc) · 4.29 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
version: '2'
services:
casemanagement-app:
image: casemanagement
environment:
- SPRING_PROFILES_ACTIVE=prod,swagger
- SPRING_CLOUD_CONSUL_HOST=consul
- SPRING_CLOUD_CONSUL_PORT=8500
- SECURITY_OAUTH2_CLIENT_ACCESS_TOKEN_URI=http://keycloak:9080/auth/realms/jhipster/protocol/openid-connect/token
- SECURITY_OAUTH2_CLIENT_USER_AUTHORIZATION_URI=http://keycloak:9080/auth/realms/jhipster/protocol/openid-connect/auth
- SECURITY_OAUTH2_RESOURCE_USER_INFO_URI=http://keycloak:9080/auth/realms/jhipster/protocol/openid-connect/userinfo
- SECURITY_OAUTH2_RESOURCE_TOKEN_INFO_URI=http://keycloak:9080/auth/realms/jhipster/protocol/openid-connect/token/introspect
- SECURITY_OAUTH2_RESOURCE_JWT_KEY_URI=http://keycloak:9080/auth/realms/jhipster
- JHIPSTER_SLEEP=10
- JHIPSTER_METRICS_PROMETHEUS_ENABLED=true
- JHIPSTER_METRICS_PROMETHEUS_ENDPOINT=/prometheusMetrics
gateway-app:
image: gateway
environment:
- SPRING_PROFILES_ACTIVE=prod,swagger
- SPRING_CLOUD_CONSUL_HOST=consul
- SPRING_CLOUD_CONSUL_PORT=8500
- SPRING_DATASOURCE_URL=jdbc:mariadb://gateway-mariadb:3306/gateway
- SECURITY_OAUTH2_CLIENT_ACCESS_TOKEN_URI=http://keycloak:9080/auth/realms/jhipster/protocol/openid-connect/token
- SECURITY_OAUTH2_CLIENT_USER_AUTHORIZATION_URI=http://keycloak:9080/auth/realms/jhipster/protocol/openid-connect/auth
- SECURITY_OAUTH2_RESOURCE_USER_INFO_URI=http://keycloak:9080/auth/realms/jhipster/protocol/openid-connect/userinfo
- SECURITY_OAUTH2_RESOURCE_TOKEN_INFO_URI=http://keycloak:9080/auth/realms/jhipster/protocol/openid-connect/token/introspect
- SECURITY_OAUTH2_RESOURCE_JWT_KEY_URI=http://keycloak:9080/auth/realms/jhipster
- JHIPSTER_SLEEP=10
- JHIPSTER_METRICS_PROMETHEUS_ENABLED=true
- JHIPSTER_METRICS_PROMETHEUS_ENDPOINT=/prometheusMetrics
ports:
- 8080:8080
gateway-mariadb:
image: mariadb:10.1.17
environment:
- MYSQL_USER=root
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=gateway
command: mysqld --lower_case_table_names=1 --skip-ssl
requirementmanagement-app:
image: requirementmanagement
environment:
- SPRING_PROFILES_ACTIVE=prod,swagger
- SPRING_CLOUD_CONSUL_HOST=consul
- SPRING_CLOUD_CONSUL_PORT=8500
- SPRING_DATASOURCE_URL=jdbc:mariadb://requirementmanagement-mariadb:3306/requirementmanagement
- SECURITY_OAUTH2_CLIENT_ACCESS_TOKEN_URI=http://keycloak:9080/auth/realms/jhipster/protocol/openid-connect/token
- SECURITY_OAUTH2_CLIENT_USER_AUTHORIZATION_URI=http://keycloak:9080/auth/realms/jhipster/protocol/openid-connect/auth
- SECURITY_OAUTH2_RESOURCE_USER_INFO_URI=http://keycloak:9080/auth/realms/jhipster/protocol/openid-connect/userinfo
- SECURITY_OAUTH2_RESOURCE_TOKEN_INFO_URI=http://keycloak:9080/auth/realms/jhipster/protocol/openid-connect/token/introspect
- SECURITY_OAUTH2_RESOURCE_JWT_KEY_URI=http://keycloak:9080/auth/realms/jhipster
- JHIPSTER_SLEEP=10
- JHIPSTER_METRICS_PROMETHEUS_ENABLED=true
- JHIPSTER_METRICS_PROMETHEUS_ENDPOINT=/prometheusMetrics
requirementmanagement-mariadb:
image: mariadb:10.1.17
environment:
- MYSQL_USER=root
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=requirementmanagement
command: mysqld --lower_case_table_names=1 --skip-ssl
consul:
extends:
file: consul.yml
service: consul
consul-config-loader:
extends:
file: consul.yml
service: consul-config-loader
keycloak:
extends:
file: keycloak.yml
service: keycloak
prometheus:
extends:
file: prometheus.yml
service: prometheus
alertmanager:
extends:
file: prometheus.yml
service: alertmanager
grafana:
extends:
file: prometheus.yml
service: grafana
volumes:
prometheus_data: {}
grafana_data: {}