-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.yml
28 lines (28 loc) · 1.28 KB
/
app.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
version: '2'
services:
telefoni-app:
image: docker.si.cnr.it/telefonia-mobile
environment:
# - _JAVA_OPTIONS=-Xmx512m -Xms256m
- SPRING_PROFILES_ACTIVE=prod,swagger
- SPRING_DATASOURCE_URL=jdbc:postgresql://telefoni-postgresql:5432/telefonia
- 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_CLIENT_CLIENT_ID=web_app
- SECURITY_OAUTH2_CLIENT_CLIENT_SECRET=web_app
- SECURITY_OAUTH2_CLIENT_SCOPE=openid profile email
- SECURITY_OAUTH2_RESOURCE_USER_INFO_URI=http://keycloak:9080/auth/realms/jhipster/protocol/openid-connect/userinfo
- JHIPSTER_SLEEP=10 # gives time for the database to boot before the application
ports:
- 8085:8080
telefoni-postgresql:
image: postgres:10.4
volumes:
- telefoni-postgresql-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=telefonia
- POSTGRES_PASSWORD=telefoniapw
ports:
- 5485:5432
volumes:
telefoni-postgresql-data: