Skip to content

Instantly share code, notes, and snippets.

@mstykt
Last active April 7, 2022 16:46
Show Gist options
  • Save mstykt/109c40b1254e2a73ac0c2ea29e1c52da to your computer and use it in GitHub Desktop.
Save mstykt/109c40b1254e2a73ac0c2ea29e1c52da to your computer and use it in GitHub Desktop.
order-postgres:
image: postgres:13
container_name: order-postgres
ports:
- "5432:5432"
volumes:
- ./db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
environment:
- POSTGRES_USER=order_api
- POSTGRES_PASSWORD=123
- POSTGRES_DB=order_db
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "order_db", "-U", "order_api" ]
timeout: 5s
interval: 2s
retries: 3
order-liquibase:
image: liquibase/liquibase:latest
container_name: order-liquibase
volumes:
- ./../db:/liquibase/changelog
command: "--url=jdbc:postgresql://order-postgres:5432/order_db?currentSchema=sch_order --changeLogFile=master.changelog.xml --username=order_api --password=123 update"
depends_on:
- order-postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment