-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (30 loc) · 821 Bytes
/
docker-compose.yml
File metadata and controls
30 lines (30 loc) · 821 Bytes
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
29
30
version: '2'
services:
db:
image: postgres:9.5
ports:
- "5432:5432"
volumes:
- "/var/lib/postgresql/data"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_DB: postgres
webapp:
depends_on:
- db
image: iuccio/springboot
links:
- db
ports:
- "8080:8080"
environment:
SPRING_APPLICATION_JSON: '{
"flyway.enabled": "true",
"l10n.flyway.clean" : "true",
"spring.datasource.url" : "jdbc:postgresql://db:5432/postgres",
"spring.datasource.username" : "postgres",
"spring.datasource.password" : "mysecretpassword",
"spring.datasource.driverClassName" : "org.postgresql.Driver",
"spring.datasource.platform"= "postgres"
}'