Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@dflourusso dflourusso commented Apr 24, 2019

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
You can’t perform that action at this time.