Last active
April 24, 2019 21:02
-
-
Save bernardoVale/ae75b9b061500238a9f5e37b99f544f5 to your computer and use it in GitHub Desktop.
Traefik with 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Essa configuração
TLS:/certs/server.crt,/certs/server.key
funciona?