Last active
August 28, 2016 13:49
-
-
Save hairyhenderson/526325ba383cb458c7dead0f2f864f98 to your computer and use it in GitHub Desktop.
Why u no like redirect???
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
web: | |
restart: always | |
image: emilevauge/whoami | |
labels: | |
- "traefik.port=80" | |
- "traefik.frontend.rule=Host:hairyhenderson.ca" | |
frontend: | |
restart: always | |
image: traefik | |
command: |- | |
--web | |
--docker --docker.domain=hairyhenderson.ca | |
--logLevel=DEBUG | |
--acme [email protected] --acme.ondemand | |
--acme.entrypoint=https --acme.storageFile=/certs/acme.json | |
--acme.domains='hairyhenderson.ca' | |
--entryPoints='Name:https Address::443 TLS' | |
--entryPoints='Name:http Address::80 Redirect.EntryPoint:https' | |
--defaultentrypoints='http,https' | |
labels: | |
- "traefik.enable=false" | |
ports: | |
- "80:80" | |
- "443:443" | |
- "0.0.0.0:8080:8080" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- /dev/null:/traefik.toml | |
- certStorage:/certs | |
volumes: | |
certStorage: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated - works now! Just needed to add
http
to--defaultentrypoints