Skip to content

Liquibase and Traefik Setup #1

Description

@aott33

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

  1. Line endings: Shell scripts have CRLF line endings on Windows after cloning repo, causing /usr/bin/env: 'bash\r': No such file or directory
  2. Liquibase driver: Liquibase 5.0+ no longer includes PostgreSQL driver, container fails with Cannot find database driver
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions