From 72805813297babe38e590ee9f422733402750ae1 Mon Sep 17 00:00:00 2001 From: Michael Schmidle Date: Thu, 17 Oct 2019 11:46:59 +0200 Subject: [PATCH] Added support for Traefik file provider --- default.env | 9 ++++++++- docker-compose.yml | 3 +++ traefik/.gitignore | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 traefik/.gitignore diff --git a/default.env b/default.env index e53f85e..9b20fa6 100644 --- a/default.env +++ b/default.env @@ -5,7 +5,7 @@ PORTAINER_HOST= TRAEFIK_HOST= # Restrict Traefik to listen to a specific IP -# (to listen to all available IPs, keep `0.0.0.0`) +# (to listen to all available IPs, keep 0.0.0.0) IP=0.0.0.0 # HTTPS management port for securing access to sensible wapps (i.e. 4443, @@ -52,3 +52,10 @@ CATALOGUE=https://cdn.jsdelivr.net/gh/MichaelSchmidle/wapps/catalogue.json # For more information on using your own logo, please refer to # http://portainer.readthedocs.io/en/stable/configuration.html#use-your-own-logo LOGO=https://cdn.jsdelivr.net/gh/MichaelSchmidle/wapps/logo.svg + +# To use Traefik as reverse proxy for your non-Dockerized wapps, please provide +# the respective Traefik configuration files in the default location (./traefik) +# or set a different location instead +# For more information on using the file provider, please refer to +# https://docs.traefik.io/v2.0/providers/file/# +TRAEFIK_CONF_DIR=./traefik diff --git a/docker-compose.yml b/docker-compose.yml index 40c9eb0..504a891 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,6 +35,8 @@ services: - "--entryPoints.https.address=:443" - "--entryPoints.https-mgmt.address=:${HTTPS_MGMT_PORT}" - "--providers.docker" + - "--providers.file.directory=/wappster/traefik" + - "--providers.file.watch=true" env_file: ".env" image: "traefik" labels: @@ -75,6 +77,7 @@ services: restart: "always" volumes: - "/var/run/docker.sock:/var/run/docker.sock" + - "${TRAEFIK_CONF_DIR}:/wappster/traefik" volumes: portainer_data: traefik_acme: diff --git a/traefik/.gitignore b/traefik/.gitignore new file mode 100644 index 0000000..5bed055 --- /dev/null +++ b/traefik/.gitignore @@ -0,0 +1,2 @@ +*.toml +*.yaml