From f4f33b95fccd2f94a95e8189476c1ac91c0221df Mon Sep 17 00:00:00 2001 From: Torben Brenner Date: Mon, 26 Sep 2022 10:51:35 +0200 Subject: [PATCH] fix: Added Traefik Certificate Specification --- ccp/docker-compose.yml | 5 ++++- lib/traefik-configuration/certificates.yaml | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 lib/traefik-configuration/certificates.yaml diff --git a/ccp/docker-compose.yml b/ccp/docker-compose.yml index 48bb616..8ac42c8 100644 --- a/ccp/docker-compose.yml +++ b/ccp/docker-compose.yml @@ -7,7 +7,9 @@ services: command: - --entrypoints.web.address=:80 - --entrypoints.websecure.address=:443 - - --providers.docker=true + - --providers.docker=true + - --providers.file.watch=true + - --providers.file.directory=/configuration/ - --api.dashboard=true - --accesslog=true # print access-logs - --entrypoints.web.http.redirections.entrypoint.to=websecure @@ -24,6 +26,7 @@ services: - 443:443 volumes: - ../certs:/tools/certs + - ../lib/traefik-configuration/:/configuration - /var/run/docker.sock:/var/run/docker.sock:ro forward_proxy: diff --git a/lib/traefik-configuration/certificates.yaml b/lib/traefik-configuration/certificates.yaml new file mode 100644 index 0000000..7a78ce3 --- /dev/null +++ b/lib/traefik-configuration/certificates.yaml @@ -0,0 +1,4 @@ +tls: + certificates: + - certFile: /certs/certificate.pem + keyFile: /certs/private-key.pem