-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·47 lines (42 loc) · 1.28 KB
/
docker-compose.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: '3'
services:
app:
image: "fabiosoaza/spring-rest-base-app:latest"
depends_on:
- db
- liquibase
ports:
- '8080:8080'
environment:
- DB_HOST=db
- DB_NAME=test
- DB_PORT=5432
- DB_USER=test
- DB_PASS=test
- SSL_MODE=disable
- MANAGEMENT_USER=test
- MANAGEMENT_PASS=test
db:
image: "fabiosoaza/spring-rest-base-database"
ports:
- '5432:5432'
liquibase:
image: "fabiosoaza/spring-rest-base-liquibase"
command: /bin/sh -c "sleep 5 && ./run-liquibase update"
depends_on:
- db
environment:
- DB_HOST=db
- DB_NAME=test
- DB_PORT=5432
- DB_USER=test
- DB_PASS=test
- SSL_MODE=disable
volumes:
- ./database-changelogs/:/liquibase/changelogs/
networks:
default:
ipam:
driver: default
config:
- subnet: 10.20.0.1/16