/
app.yml
28 lines (28 loc) · 1.08 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
# This configuration is intended for development purpose, it's **your** responsibility to harden it for production
version: '3.8'
services:
tododemo-app:
image: tododemo
environment:
- _JAVA_OPTIONS=-Xmx512m -Xms256m
- SPRING_PROFILES_ACTIVE=prod,api-docs
- MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED=true
- SPRING_DATASOURCE_URL=jdbc:postgresql://tododemo-postgresql:5432/todoDemo
- SPRING_LIQUIBASE_URL=jdbc:postgresql://tododemo-postgresql:5432/todoDemo
- JHIPSTER_SLEEP=30 # gives time for other services to boot before the application
# If you want to expose these ports outside your dev PC,
# remove the "127.0.0.1:" prefix
ports:
- 8081:8080
tododemo-postgresql:
image: postgres:13.3
# volumes:
# - ~/volumes/jhipster/todoDemo/postgresql/:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=todoDemo
- POSTGRES_PASSWORD=
- POSTGRES_HOST_AUTH_METHOD=trust
# If you want to expose these ports outside your dev PC,
# remove the "127.0.0.1:" prefix
ports:
- 127.0.0.1:5432:5432