-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.yml
25 lines (25 loc) · 1.24 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
version: '2'
services:
smartacademicsystem-app:
image: smartacademicsystem
environment:
- _JAVA_OPTIONS=-Xmx512m -Xms256m
- SPRING_PROFILES_ACTIVE=prod,swagger
- SPRING_DATASOURCE_URL=jdbc:mysql://smartacademicsystem-mysql:3306/smartacademicsystem?useUnicode=true&characterEncoding=utf8&useSSL=false
- 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:
- 8080:8080
smartacademicsystem-mysql:
extends:
file: mysql.yml
service: smartacademicsystem-mysql
keycloak:
extends:
file: keycloak.yml
service: keycloak