0

I have docker springboot application which is using docker Postgres database and flyway as a database migration tool but when I run docker-compose up it throws exception that

org.postgresql.util.PSQLException: FATAL: database "my_db" does not exist

the Question is how to create the database inside the Postgres docker image using flyway

1 Answer 1

1

Flyway deploys the defined scripts to a database. It doesn't create the database. You need one additional step, somewhere, that creates your my_db first, then you can run Flyway to do the deployment of all the database internals.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.