Major accomplishments: - ✅ SELinux policy installed and working - ✅ Core Traefik v2.10 deployment running - ✅ Production configuration ready (v3.1) - ✅ Monitoring stack configured - ✅ Comprehensive documentation created - ✅ Security hardening implemented Current status: - 🟡 Partially deployed (60% complete) - ⚠️ Docker socket access needs resolution - ❌ Monitoring stack not deployed yet - ⚠️ Production migration pending Next steps: 1. Fix Docker socket permissions 2. Deploy monitoring stack 3. Migrate to production config 4. Validate full functionality Files added: - Complete Traefik deployment documentation - Production and test configurations - Monitoring stack configurations - SELinux policy module - Security checklists and guides - Current status documentation
53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
version: '3.9'
|
|
|
|
services:
|
|
traefik:
|
|
image: traefik:v2.10
|
|
command:
|
|
- --providers.docker=true
|
|
- --providers.docker.exposedbydefault=false
|
|
- --providers.docker.swarmMode=true
|
|
- --providers.docker.endpoint=tcp://docker-socket-proxy:2375
|
|
- --entrypoints.web.address=:80
|
|
- --entrypoints.websecure.address=:443
|
|
- --api.dashboard=true
|
|
- --api.insecure=false
|
|
- --log.level=INFO
|
|
- --accesslog=true
|
|
volumes:
|
|
- traefik_letsencrypt:/letsencrypt
|
|
- traefik_logs:/logs
|
|
networks:
|
|
- traefik-public
|
|
ports:
|
|
- "18080:80" # Changed to avoid conflicts
|
|
- "18443:443" # Changed to avoid conflicts
|
|
- "18088:8080" # Changed to avoid conflicts
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
resources:
|
|
limits:
|
|
memory: 512M
|
|
reservations:
|
|
memory: 256M
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.routers.dashboard.rule=Host(`traefik.localhost`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))
|
|
- traefik.http.routers.dashboard.service=api@internal
|
|
- traefik.http.routers.dashboard.entrypoints=websecure
|
|
- traefik.http.routers.dashboard.tls=true
|
|
- traefik.http.routers.dashboard.middlewares=auth
|
|
- traefik.http.middlewares.auth.basicauth.users=admin:$$2y$$10$$xvzBkbKKvRX.jGG6F7L.ReEMyEx.7BkqNGQO2rFt/1aBgx8jPElXW
|
|
- traefik.http.services.dummy-svc.loadbalancer.server.port=9999
|
|
|
|
volumes:
|
|
traefik_letsencrypt:
|
|
driver: local
|
|
traefik_logs:
|
|
driver: local
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true |