Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- myBrand-app:
- image: myBrand
- environment:
- - _JAVA_OPTIONS=-Xmx512m -Xms256m
- - SPRING_PROFILES_ACTIVE=prod,swagger
- - SPRING_DATASOURCE_URL=jdbc:postgresql://myBrand-postgresql:5432/myBrand
- - SLEEP=10 # gives time for the database to boot before the application
- ports:
- - 8080:8080
- myBrand-postgresql:
- extends:
- file: postgresql.yml
- service: myBrand-postgresql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement