Add Traefik labels for domain routing and SSL

Added traefik.enable, router rules, TLS config, and loadbalancer
  settings to enable proper routing through Traefik reverse proxy.
This commit is contained in:
richardtekula
2025-11-11 17:20:11 +01:00
parent f78c2199e1
commit ccc5ba47c7

View File

@@ -67,6 +67,13 @@ services:
labels: labels:
- "coolify.managed=true" - "coolify.managed=true"
- "coolify.type=application" - "coolify.type=application"
# Traefik labels for routing
- "traefik.enable=true"
- "traefik.http.routers.backend.rule=Host(`prince2-ebook.apps.inbox.sk`)"
- "traefik.http.routers.backend.entrypoints=websecure"
- "traefik.http.routers.backend.tls=true"
- "traefik.http.routers.backend.tls.certresolver=letsencrypt"
- "traefik.http.services.backend.loadbalancer.server.port=8000"
volumes: volumes:
# Pre persistenciu logov a translation súborov # Pre persistenciu logov a translation súborov
- backend_logs:/app/admin-backend/logs - backend_logs:/app/admin-backend/logs