Files
traefik/example.env
T

32 lines
1.2 KiB
Bash

# 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
TRAEFIK_YAML=./traefik/traefik.yaml
# 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)
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 (used by compose.yaml)
CLOUDFLARE_EMAIL=[EMAIL]
CLOUDFLARE_API_KEY=[API_KEY]
# Scoped Cloudflare DNS API token (used by compose.future.yaml instead of email + global key)
# CLOUDFLARE_DNS_API_TOKEN=[DNS_API_TOKEN]