Skip to content

theiterators/flyway-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Dockerized flyway command line tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published