traefik-container/container-compose.yml

27 lines
488 B
YAML

---
version: '3'
networks:
web:
external: true
services:
reverse-proxy:
image: docker.io/traefik:latest
command:
- "--configFile=/traefik.toml"
environment:
- TRAEFIK_API_INSECURE=true
ports:
# The HTTP port
- "8080:80"
# The Web UI (enabled by --api.insecure=true)
- "8081:8080"
# TLS
- "8443:443"
networks:
- web
volumes:
- ./traefik.toml:/traefik.toml:ro
- ./conf.d:/traefik.conf.d:ro