-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.yml
More file actions
48 lines (48 loc) · 1.42 KB
/
app.yml
File metadata and controls
48 lines (48 loc) · 1.42 KB
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
# This configuration is intended for development purpose, it's **your** responsibility to harden it for production
name: gateway
services:
app:
image: gateway
environment:
- _JAVA_OPTIONS=-Xmx512m -Xms256m
- SPRING_PROFILES_ACTIVE=prod,api-docs
- MANAGEMENT_PROMETHEUS_METRICS_EXPORT_ENABLED=true
- SPRING_CLOUD_CONSUL_HOST=consul
- SPRING_CLOUD_CONSUL_PORT=8500
- SPRING_R2DBC_URL=r2dbc:postgresql://postgresql:5432/gateway
- SPRING_LIQUIBASE_URL=jdbc:postgresql://postgresql:5432/gateway
- SPRING_SECURITY_OAUTH2_CLIENT_PROVIDER_OIDC_ISSUER_URI=http://keycloak:9080/realms/jhipster
- SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_OIDC_CLIENT_ID=web_app
- SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_OIDC_CLIENT_SECRET=web_app
ports:
- 127.0.0.1:8080:8080
healthcheck:
test:
- CMD
- curl
- -f
- http://localhost:8080/management/health
interval: 5s
timeout: 5s
retries: 40
depends_on:
postgresql:
condition: service_healthy
keycloak:
condition: service_healthy
postgresql:
extends:
file: ./postgresql.yml
service: postgresql
keycloak:
extends:
file: ./keycloak.yml
service: keycloak
consul:
extends:
file: ./consul.yml
service: consul
consul-config-loader:
extends:
file: ./consul.yml
service: consul-config-loader