Files
budget-backend/containers/docker-compose.local.yml
2021-11-03 14:10:58 +01:00

38 lines
950 B
YAML

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