Skip to content

Instantly share code, notes, and snippets.

@bernardoVale
Last active April 24, 2019 21:02
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bernardoVale/ae75b9b061500238a9f5e37b99f544f5 to your computer and use it in GitHub Desktop.
Save bernardoVale/ae75b9b061500238a9f5e37b99f544f5 to your computer and use it in GitHub Desktop.
Traefik with ssl
version: '2'
services:
traefik:
image: traefik
command: -c /dev/null --web --docker --docker.domain=docker.localhost --logLevel=DEBUG --entryPoints="Name:https Address::443 TLS:/certs/server.crt,/certs/server.key;/certs_br/server.crt,/certs_br/server.key" --entryPoints="Name:http Address::80 Redirect.EntryPoint:https"
ports:
- "80:80"
- "8080:8080"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./certs/avenuecode.com:/certs
- ./certs/avenuecode.com.br:/certs_br
nginx1:
image: nginx
labels:
- traefik.backend=nginx1
- traefik.frontend.rule=Host:foo.avenuecode.com
- traefik.port=80
- traefik.frontend.entryPoints=http
networks:
default:
external:
name: traefik
@dflourusso
Copy link

Essa configuração TLS:/certs/server.crt,/certs/server.key funciona?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment