From cfdaf183fec05d58b2cf65038bf4761c0f33947d Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Wed, 30 Sep 2020 00:54:36 +0200 Subject: [PATCH] Configurable dashboard & log level, + healthcheck --- compose.yml | 10 ++++++++++ traefik.yml | 7 +++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/compose.yml b/compose.yml index f4741da..0962829 100644 --- a/compose.yml +++ b/compose.yml @@ -19,6 +19,15 @@ services: target: /etc/traefik/file-provider.yml networks: - proxy + environment: + - DASHBOARD_ENABLED + - LOG_LEVEL + healthcheck: + test: ["CMD", "traefik", "healthcheck"] + interval: 30s + timeout: 10s + retries: 10 + start_period: 1m deploy: update_config: failure_action: rollback @@ -40,6 +49,7 @@ configs: traefik_yml: name: ${STACK_NAME}_traefik_yml_${TRAEFIK_YML_VERSION} file: traefik.yml + template_driver: golang file_provider_yml: name: ${STACK_NAME}_file_provider_yml_${FILE_PROVIDER_YML_VERSION} file: file-provider.yml diff --git a/traefik.yml b/traefik.yml index da3375f..9f13b1d 100644 --- a/traefik.yml +++ b/traefik.yml @@ -1,6 +1,6 @@ --- log: - level: INFO + level: {{ env "LOG_LEVEL" }} providers: docker: @@ -12,7 +12,7 @@ providers: filename: /etc/traefik/file-provider.yml api: - dashboard: false + dashboard: {{ env "DASHBOARD_ENABLED" }} debug: false entrypoints: @@ -29,6 +29,9 @@ entrypoints: smtp-submission: address: ":587" +ping: + entryPoint: web + certificatesResolvers: staging: acme: