Files
traefik/example.command.env

37 lines
1.3 KiB
Bash

# Environment template for compose.command.yaml (static config via CLI flags; no traefik.yaml mount)
# Container image
TRAEFIK_IMAGE=traefik:latest
# Host bind-mount paths (must already exist on the host; create_host_path is false)
# Use a persistent host path on Linode VPS / NAS so certificates survive stack redeploys
TRAEFIK_ACME=/path/to/letsencrypt
# Host-specific dynamic config mounted at /etc/traefik/conf.d/local
# (Repo base config in ./traefik/conf.d is always mounted at /etc/traefik/conf.d/base;
# do NOT point TRAEFIK_CONFD at ./traefik/conf.d or base files will load twice)
TRAEFIK_CONFD=./traefik/conf.local
# Shared external Docker network (create beforehand: docker network create traefik)
# Used by both the Compose network and --providers.docker.network
NETWORK_NAME=traefik
# Host port bindings
TRAEFIK_HTTP_PORT=8342
TRAEFIK_HTTPS_PORT=8767
TRAEFIK_DASHBOARD_PORT=8080
# Traefik dashboard (htpasswd format; escape $ as $$ in .env for Docker Compose)
CONSOLE_HOST=traefik.mifi.dev
TRAEFIK_CONSOLE_AUTH=[username]:[password]
# Cloudflare DNS-01 challenge credentials
CLOUDFLARE_EMAIL=[EMAIL]
CLOUDFLARE_API_KEY=[API_KEY]
# Optional ACME registration email override (defaults to CLOUDFLARE_EMAIL when unset)
# ACME_EMAIL=[ACME_EMAIL]
# Traefik static log level (DEBUG, INFO, WARN, ERROR)
TRAEFIK_LOG_LEVEL=INFO