Files
mam-contract/containers/docker-compose.local.yml
Jeffrey Duroyon 33db360b03 init
2023-10-18 19:52:34 +02:00

38 lines
954 B
YAML

version: "2.1"
services:
database:
image: postgres:10-alpine
ports:
- "5432"
environment:
- POSTGRES_PASSWORD=password
healthcheck:
test: ["CMD-SHELL", "psql -U postgres -c 'SELECT 1;'"]
interval: 10s
timeout: 30s
retries: 3
liquibase:
image: kilna/liquibase-mysql
depends_on:
database:
condition: service_healthy
links:
- database
environment:
- LIQUIBASE_DATABASE=workScheduler
- LIQUIBASE_HOST=database
- LIQUIBASE_USERNAME=postgres
- LIQUIBASE_PASSWORD=password
- LIQUIBASE_CHANGELOG=/changelogs/changelog-master.xml
- LIQUIBASE_CLASSPATH=/changelogs/postgresql-42.2.5.jar
- LIQUIBASE_DRIVER=org.postgresql.Driver
- LIQUIBASE_URL=jdbc:postgresql://database:5432/workScheduler
volumes:
- $PWD/liquibase/changelogs/:/workspace
command:
- liquibase
- --defaultsFile=/workspace/liquibase.properties
- update