An open API service indexing awesome lists of open source software.

https://github.com/theiterators/flyway-docker

Dockerized flyway command line tool
https://github.com/theiterators/flyway-docker

Last synced: 5 months ago
JSON representation

Dockerized flyway command line tool

Awesome Lists containing this project

README

          

# flyway-docker

Dockerized [flyway](https://flywaydb.org) 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 from [Iterators](https://iterato.rs).

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