Last active
April 7, 2022 16:46
-
-
Save mstykt/109c40b1254e2a73ac0c2ea29e1c52da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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