traefik
Posted
The Cloud Native Application Proxy.
# file: `docker-compose.yml`
services:
traefik:
image: ${HONEYPI_IMAGE_REGISTRY_HOST:-docker.io}/traefik:${HONEYPI_TRAEFIK_VERSION:-latest}
container_name: traefik
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=true"
- "--entrypoints.web.address=:80"
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
- "--entryPoints.websecure.address=:443"
- "--certificatesresolvers.resolver.acme.tlschallenge=true"
- "--certificatesresolvers.resolver.acme.email=${HONEYPI_LETSENCRYPT_EMAIL}"
- "--certificatesresolvers.resolver.acme.storage=/letsencrypt/acme.json"
ports:
- 80:80
- 443:443
- 8080:8080
# - 2222:2222
volumes:
- ${HONEYPI_DATA}/letsencrypt:/letsencrypt
- ${HONEYPI_CONFIG}/traefik:/etc/traefik/config
- /var/run/docker.sock:/var/run/docker.sock