traefik3/docker-compose.traefik3.yml

21 lines
629 B
YAML

version: '3'
services:
reverse-proxy:
# The official v3 Traefik docker image
image: traefik:v3.1
# Enables the web UI and tells Traefik to listen to docker
command: --configFile=/config/traefik.yml
ports:
# The HTTP port
- "80:80"
# The HTTPS port
- "443:443"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
- /docker/traefik3/logs:/logs
- /docker/traefik3/config:/config
- /docker/traefik3/ACME/acme.json:/ACME/acme.json