I have these entries in my docker-compose.yml
flyway:
container_name: flyway
image: flyway/flyway
command: -url=jdbc:postgresql://postgresql:5432/db_name -schemas=public -user=username -password=password -connectRetries=60 migrate -X
volumes:
- ./config/src/main/sql:/flyway/sql
depends_on:
- postgresql
postgresql:
container_name: postgresql
image: postgres:10.1-alpine
command:
- postgres
- '-clog_connections=yes'
- '-clog_statement=all'
env_file:
- ./dev.env
networks:
- internal
ports:
- '5439:5432'
volumes:
- volume-postgres:/var/lib/postgresql/data
When I run docker-compose up --build flyway, I get this error
postgresql is up-to-date
Recreating flyway ... done
Attaching to flyway
flyway | WARNING: Connection error: The connection attempt failed.
flyway | (Caused by postgresql)
flyway | Retrying in 1 sec...
flyway | WARNING: Connection error: The connection attempt failed.
flyway | (Caused by postgresql)
flyway | Retrying in 2 sec...
flyway | WARNING: Connection error: The connection attempt failed.
flyway | (Caused by postgresql)
- How can I debug it? In some answers I see DEBUG printed in the output.
- What is wrong that it errors out?