Prepare your container
For usage, you will most likely want to create your own dockerfile based on
For deploying your Java Application to liberty, just refer to the websphere-liberty documentation on dockerhub.
Make sure to add your desired flyway migrations to the directory db/migration in the container:
FROM larscheidschmitzhermes/liberty-flyway-docker ADD your/migrations db/migration
Run your container
During container startup, flyway will run your migrations. After that, liberty is started.
To connect flyway to the right database, the following environment variables are used and need to be set when the container is run:
- DATABASE_HOST - DATABASE_PORT - DATABASE_NAME - DATABASE_USER - DATABASE_PASSWORD