Closed lizziemac closed 1 year ago
I realized that you actually need to specify the database type, here's the updated .yaml (the secret is SPRING_JPA_DATABASE
)
hawkbit:
image: hawkbit/hawkbit-update-server:latest
container_name: backend-hawkbit
depends_on:
- postgres
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://backend-postgres/hawkbit
SPRING_DATASOURCE_USERNAME: backend_user
SPRING_DATASOURCE_PASSWORD: password
SPRING_JPA_DATABASE: POSTGRESQL
ports:
- "3001:8080"
platform: linux/amd64
volumes:
- ./application.properties:/opt/hawkbit/application.properties
I'm trying to set up a local instance with Docker and PostgreSQL with the following service configuration in a Docker compose file:
However, when running the service, I encounter a Flyway DB migration error that seems to be a SQL syntax issue:
I believe the correct method is
What is the recommended approach for getting past this? Editing the migration will likely invalidate checksums for other developers, if they were able to get past this point.
Thanks! Liz