-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-springboot-postgres.yaml
54 lines (48 loc) · 1.35 KB
/
docker-compose-springboot-postgres.yaml
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
47
48
49
50
51
52
53
54
version: "3.9"
services:
pagopa-payment-transactions-gateway:
container_name: pagopa-payment-transactions-gateway
env_file: .env.local
build:
context: .
ports:
- "8085:8080"
networks:
- payment-gateway-net
- pagopa-ecommerce-net
postgres:
image: postgres:latest
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
networks:
- payment-gateway-net
postgres-liquibase:
container_name: postgres-liquibase
image: liquibase/liquibase
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
command:
- --classpath=/liquibase/changelog
- --url=jdbc:postgresql://postgres:5432/${POSTGRES_DB}?user=${POSTGRES_USER}&password=${POSTGRES_PASSWORD}
- --changeLogFile=changelog.xml
- --contexts=default,legacy,not_legacy
- update
- -Dschema=public
volumes:
- ./.db/postgres/changes/changelog.xml:/liquibase/changelog.xml
networks:
- payment-gateway-net
networks:
payment-gateway-net:
name: payment-gateway-net
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1450
pagopa-ecommerce-net:
name: pagopa-ecommerce-net