workspace-v1/control-plane/devtools/docker/traefik/traefik.yml
Adrian Flores Cortes 967ab360bb Initial commit: Workspace v1 with 3-layer architecture
Structure:
- control-plane/: Registries, SIMCO directives, CI/CD templates
- projects/: Gamilit, ERP-Suite, Trading-Platform, Betting-Analytics
- shared/: Libs catalog, knowledge-base

Key features:
- Centralized port, domain, database, and service registries
- 23 SIMCO directives + 6 fundamental principles
- NEXUS agent profiles with delegation rules
- Validation scripts for workspace integrity
- Dockerfiles for all services
- Path aliases for quick reference

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 00:35:19 -06:00

120 lines
3.5 KiB
YAML

# ==============================================================================
# TRAEFIK.YML - Configuracion Principal de Traefik
# ==============================================================================
# Proposito: Configuracion estatica de Traefik para el workspace
# Mantenido por: DevOps-Agent
# Actualizado: 2025-12-18
# ==============================================================================
# ------------------------------------------------------------------------------
# CONFIGURACION GLOBAL
# ------------------------------------------------------------------------------
global:
checkNewVersion: false
sendAnonymousUsage: false
# ------------------------------------------------------------------------------
# API Y DASHBOARD
# ------------------------------------------------------------------------------
api:
dashboard: true
insecure: true # Solo para desarrollo local
# ------------------------------------------------------------------------------
# ENTRYPOINTS
# ------------------------------------------------------------------------------
entryPoints:
# HTTP - Puerto 80
web:
address: ":80"
http:
redirections:
entryPoint:
to: websecure
scheme: https
permanent: true
# HTTPS - Puerto 443
websecure:
address: ":443"
http:
tls:
certResolver: letsencrypt
# Metrics - Puerto interno
metrics:
address: ":8082"
# ------------------------------------------------------------------------------
# PROVIDERS
# ------------------------------------------------------------------------------
providers:
# Docker provider - descubre servicios automaticamente
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
network: infra_shared
watch: true
# File provider - configuracion dinamica
file:
directory: "/etc/traefik/dynamic"
watch: true
# ------------------------------------------------------------------------------
# CERTIFICADOS TLS (Let's Encrypt)
# ------------------------------------------------------------------------------
certificatesResolvers:
letsencrypt:
acme:
email: "${ACME_EMAIL:-admin@example.com}"
storage: "/letsencrypt/acme.json"
httpChallenge:
entryPoint: web
# ------------------------------------------------------------------------------
# LOGGING
# ------------------------------------------------------------------------------
log:
level: INFO
format: json
filePath: "/var/log/traefik/traefik.log"
accessLog:
filePath: "/var/log/traefik/access.log"
format: json
bufferingSize: 100
filters:
statusCodes:
- "400-599"
retryAttempts: true
minDuration: "10ms"
# ------------------------------------------------------------------------------
# METRICS (Prometheus)
# ------------------------------------------------------------------------------
metrics:
prometheus:
entryPoint: metrics
addEntryPointsLabels: true
addServicesLabels: true
addRoutersLabels: true
buckets:
- 0.1
- 0.3
- 1.2
- 5.0
# ------------------------------------------------------------------------------
# HEALTH CHECK
# ------------------------------------------------------------------------------
ping:
entryPoint: web
# ------------------------------------------------------------------------------
# EXPERIMENTAL (opcional)
# ------------------------------------------------------------------------------
# experimental:
# plugins:
# # Plugins de Traefik si se requieren