Update wordpress-traefik.yml

This commit is contained in:
Marco Antonio Vivas
2025-09-29 10:10:24 -03:00
committed by GitHub
parent 53b9bdcff2
commit a64c221e64

View File

@@ -63,10 +63,17 @@ services:
- traefik_network - traefik_network
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
# Router HTTP (redireciona para HTTPS)
- "traefik.http.routers.wordpress-http.rule=Host(`intranet.local`)"
- "traefik.http.routers.wordpress-http.entrypoints=web"
- "traefik.http.routers.wordpress-http.middlewares=redirect-to-https"
# Router HTTPS
- "traefik.http.routers.wordpress.rule=Host(`intranet.local`)" - "traefik.http.routers.wordpress.rule=Host(`intranet.local`)"
- "traefik.http.routers.wordpress.entrypoints=websecure" - "traefik.http.routers.wordpress.entrypoints=websecure"
- "traefik.http.routers.wordpress.tls.certresolver=letsencrypt" - "traefik.http.routers.wordpress.tls.certresolver=letsencrypt"
- "traefik.http.services.wordpress.loadbalancer.server.port=80" - "traefik.http.services.wordpress.loadbalancer.server.port=80"
# Middleware de redirecionamento
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
networks: networks:
traefik_network: traefik_network: