I encountered a few issues getting the Docker setup working on Windows and thought it would be helpful to add a Traefik container example for those not familiar with using Traefik.
Issues
- Line endings: Shell scripts have CRLF line endings on Windows after cloning repo, causing
/usr/bin/env: 'bash\r': No such file or directory
- Liquibase driver: Liquibase 5.0+ no longer includes PostgreSQL driver, container fails with
Cannot find database driver
- Traefik Container and labels: Using simplified labels that don't work with Traefik 2.x
Solution
- Add
.gitattributes to enforce LF endings for .sh files
- Mount PostgreSQL JDBC driver for Liquibase container
- Add Traefik container to show how Traefik can be used with this docker compose. Updated labels using Traefik 2.x label syntax
See proposed fixes with implemented solutions.
Happy to hear any feedback! I can open a PR if you'd like to merge these changes.
I encountered a few issues getting the Docker setup working on Windows and thought it would be helpful to add a Traefik container example for those not familiar with using Traefik.
Issues
/usr/bin/env: 'bash\r': No such file or directoryCannot find database driverSolution
.gitattributesto enforce LF endings for.shfilesSee proposed fixes with implemented solutions.
Happy to hear any feedback! I can open a PR if you'd like to merge these changes.