Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 824 Bytes

README.md

File metadata and controls

23 lines (13 loc) · 824 Bytes

flyway-docker

Dockerized flyway command line tool.

Usage

Run:

docker run --rm -v /path/to/your/migrations:/sql -e FLYWAY_CMD=migrate -e DB_USER=postgres -e DB_PASSWORD=postgres -e DB_URL=jdbc:postgresql://db_host/db_name iterators/flyway-docker -e DB_CONNECTION_CHECK=true

Remember to provide correct /path/to/your/migrations and env variables: FLYWAY_CMD, DB_USER, DB_PASSWORD, DB_URL.

If you want to check connection to your database before executing FLYWAY_CMD set DB_CONNECTION_CHECK env variable to any value (like DB_CONNECTION_CHECK=true).

Author & license

If you have any questions regarding this project contact:

Łukasz Sowa [email protected] from Iterators.

For licensing info see LICENSE file in project's root directory.