This repository has been archived on 2022-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
docker-traefik/templates/docker-compose.j2

30 lines
913 B
Text
Raw Normal View History

2021-10-11 10:01:15 +00:00
version: '3'
2021-10-19 17:07:24 +00:00
networks:
web:
external: true
2021-10-11 10:01:15 +00:00
services:
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.5
# Enables the web UI and tells Traefik to listen to docker
2021-10-20 11:57:59 +00:00
command:
- "--api.insecure=true"
2021-10-20 12:02:41 +00:00
- "--providers.docker"
2021-10-20 11:57:59 +00:00
- "--certificatesResolvers.le.acme.email=ssl@kekskurse.de"
- "--certificatesResolvers.le.acme.storage=/letsencrypt/acme.json"
- "--certificatesResolvers.le.acme.tlsChallenge=false"
- "--certificatesResolvers.le.acme.httpChallenge=true"
- "--certificatesResolvers.le.acme.httpChallenge.entryPoint=web"
2021-10-19 17:07:24 +00:00
networks:
- web
2021-10-11 10:01:15 +00:00
ports:
# The HTTP port
- "80:80"
2021-10-20 11:57:59 +00:00
- 443:443
2021-10-11 10:01:15 +00:00
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
2021-10-20 11:57:59 +00:00
- /var/run/docker.sock:/var/run/docker.sock
- ./letsencrypt:/letsencrypt