forked from ningju94/ReactStudentManagement
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.yml
More file actions
24 lines (24 loc) · 1.16 KB
/
app.yml
File metadata and controls
24 lines (24 loc) · 1.16 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
version: '2'
services:
reactstudentmanagement-app:
image: reactstudentmanagement
environment:
# - _JAVA_OPTIONS=-Xmx512m -Xms256m
- SPRING_PROFILES_ACTIVE=prod,swagger
- EUREKA_CLIENT_SERVICE_URL_DEFAULTZONE=http://admin:$${jhipster.registry.password}@jhipster-registry:8761/eureka
- SPRING_CLOUD_CONFIG_URI=http://admin:$${jhipster.registry.password}@jhipster-registry:8761/config
- SPRING_DATASOURCE_URL=jdbc:mysql://reactstudentmanagement-mysql:3306/reactstudentmanagement?useUnicode=true&characterEncoding=utf8&useSSL=false
- JHIPSTER_SLEEP=30 # gives time for the JHipster Registry to boot before the application
ports:
- 8080:8080
reactstudentmanagement-mysql:
extends:
file: mysql.yml
service: reactstudentmanagement-mysql
jhipster-registry:
extends:
file: jhipster-registry.yml
service: jhipster-registry
environment:
- SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_TYPE=native
- SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_SEARCH_LOCATIONS=file:./central-config/docker-config/