Skip to content

Instantly share code, notes, and snippets.

@wshayes
Created April 10, 2020 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wshayes/13e2c1d7cc79a6655ef0410acfab1976 to your computer and use it in GitHub Desktop.
Save wshayes/13e2c1d7cc79a6655ef0410acfab1976 to your computer and use it in GitHub Desktop.
[Traefik SSL setup] #traefik #SSL
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