refactor(docker): remove all .env file references and add configurable Traefik vars

- Remove env_file from deploy/portainer-stack.yml (api and web services)
- Add TRAEFIK_CERT_RESOLVER env var to all Traefik router labels
- Add TRAEFIK_DASHBOARD_SUBDOMAIN for configurable dashboard hostname
- Add TRAEFIK_ENTRYPOINT env var to Traefik dashboard router
- Update .env.example with TRAEFIK_DASHBOARD_SUBDOMAIN and TRAEFIK_LOG_LEVEL
- Update deploy/.env.example with new Traefik variables

All environment variables now come from host environment only.
This commit is contained in:
2026-05-16 12:05:43 +00:00
parent dab37a88e8
commit 1f2017b7a9
4 changed files with 25 additions and 14 deletions
+2
View File
@@ -25,6 +25,8 @@ AUTHENTIK_CLIENT_SECRET=your-client-secret
TRAEFIK_NETWORK=traefik
TRAEFIK_ENTRYPOINT=websecure
TRAEFIK_CERT_RESOLVER=letsencrypt
TRAEFIK_DASHBOARD_SUBDOMAIN=traefik
TRAEFIK_LOG_LEVEL=INFO
TOOL_SUBDOMAIN_PATTERN={tool}-{project}-{user}.tools.localhost
# Frontend build-time variables (passed to web container)