christianlempa-boilerplates/docker-compose/traefik
2021-12-30 11:58:26 +01:00
..
config Update traefik.yml 2021-12-16 11:17:18 +01:00
docker-compose.yml ssl cert store update and self-signed cert support 2021-12-14 18:12:08 +01:00
README.md readme updates 2021-12-30 11:58:26 +01:00

Installation

Data Persistence

... Storing Data in the /etc/traefik directory on the host, passing through...

    volumes:
      - /etc/traefik:/etc/traefik

Self-Signed Certificates

According to traefik's documentation it will automatically generate self-signed Certificates if no Default Certificate is provided. If you'd like to overwrite the self-signed Certificate with your own, uncomment the section for

# (Optional) Overwrite Default Certificates
tls:
  stores:
    default:
      defaultCertificate:
        certFile: /etc/traefik/certs/cert.pem
        keyFile: /etc/traefik/certs/cert-key.pem

Replace the /etc/traefik/certs/cert.pem with your certificate file, and the /etc/traefik/certs/cert-key.pem with your certificate key.

Best-Practices & Post-Installation

providers:
  docker:
    exposedByDefault: false  # Default is true
  file:
    # watch for dynamic configuration changes
    directory: /etc/traefik
    watch: true