Skip to content

Commit

Permalink
Added support for Traefik file provider
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSchmidle committed Oct 17, 2019
1 parent 5b9b03a commit 7280581
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion default.env
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
2 changes: 2 additions & 0 deletions traefik/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.toml
*.yaml

0 comments on commit 7280581

Please sign in to comment.