Browse Source

Add SSL configuration example

pull/311/head
Sven Fischer 4 years ago
parent
commit
8f97f70621
  1. 18
      containers/docker-compose.traefik.yml

18
containers/docker-compose.traefik.yml

@ -1,5 +1,11 @@
version: '2'
# Sample docker compose file to demonstrate the usage of wetty behind a reverse
# proxy, optionally with Let's Encrypt based SSL certificate
#
# For SSL support, uncomment the commented lines. Consult traefik documentation
# for features like automatic forward from HTTP to HTTPS etc.
services:
wetty:
image: wettyoss/wetty
@ -9,11 +15,21 @@ services:
labels:
- "traefik.enable=true"
- "traefik.http.routers.wetty.rule=Host(`wetty.example.com`)"
# - "traefik.http.routers.wetty.tls.certResolver=default"
# - "traefik.http.routers.wetty.tls=true"
reverse-proxy:
image: traefik
command: --providers.docker
command:
- --providers.docker
- --entryPoints.web.address=:80
# - --entryPoints.websecure.address=:443
# - --certificatesResolvers.default.acme.email=your-email@example.com
# - --certificatesResolvers.default.acme.storage=acme.json
# - --certificatesResolvers.default.acme.httpChallenge.entryPoint=web
ports:
- "80:80"
# - "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock

Loading…
Cancel
Save