Created
April 10, 2020 15:19
-
-
Save wshayes/13e2c1d7cc79a6655ef0410acfab1976 to your computer and use it in GitHub Desktop.
[Traefik SSL setup] #traefik #SSL
This file contains hidden or 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
traefik: | |
image: traefik:1.7 | |
container_name: traefik | |
ports: | |
- 80:80 | |
- 443:443 | |
command: | |
- --api | |
- --debug=false | |
- --logLevel=ERROR | |
- --retry | |
- --docker.endpoint=unix:///var/run/docker.sock | |
- --docker.watch=true | |
- --docker.exposedbydefault=false | |
- --defaultentrypoints=http,https | |
- --entryPoints=Name:http Address::80 Redirect.EntryPoint:https | |
- --entryPoints=Name:https Address::443 TLS:/certs/wildcard_example_com.crt,/certs/wildcard_example_com.key | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- $PWD/certs:/certs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment