mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-05-21 15:36:49 +00:00
Refactor Traefik routing rules in adguardhome.yml
This commit is contained in:
+21
-17
@@ -4,23 +4,23 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /var/data/adguardhome_conf:/opt/adguardhome/conf
|
- /var/data/adguardhome_conf:/opt/adguardhome/conf
|
||||||
- /var/data/adguardhome_work:/opt/adguardhome/work
|
- /var/data/adguardhome_work:/opt/adguardhome/work
|
||||||
ports:
|
# ports:
|
||||||
# DNS
|
# DNS
|
||||||
- 53:53
|
# - 53:53
|
||||||
# # DHCP server
|
# # DHCP server
|
||||||
# - 67:67/udp
|
# - 67:67/udp
|
||||||
# - 68:68/udp
|
# - 68:68/udp
|
||||||
# # HTTPS/DNS-over-HTTPS
|
# # HTTPS/DNS-over-HTTPS
|
||||||
# - 443:443/tcp
|
# - 443:443/tcp
|
||||||
# # DNS-over-TLS
|
# # DNS-over-TLS
|
||||||
# - 853:853/tcp
|
# - 853:853/tcp
|
||||||
# # DNS-over-QUIC
|
# # DNS-over-QUIC
|
||||||
# - 853:853/udp
|
# - 853:853/udp
|
||||||
# # DNSCrypt
|
# # DNSCrypt
|
||||||
# - 5443:5443/tcp
|
# - 5443:5443/tcp
|
||||||
# - 5443:5443/udp
|
# - 5443:5443/udp
|
||||||
# # WebUI
|
# # WebUI
|
||||||
# - 3000:3000/tcp
|
# - 3000:3000/tcp
|
||||||
networks:
|
networks:
|
||||||
- traefik-public
|
- traefik-public
|
||||||
deploy:
|
deploy:
|
||||||
@@ -28,6 +28,10 @@ services:
|
|||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.docker.network=traefik-public
|
- traefik.docker.network=traefik-public
|
||||||
- traefik.constraint-label=traefik-public
|
- traefik.constraint-label=traefik-public
|
||||||
|
- traefik.tcp.routers.adguardhome_tcp.entrypoints=dns
|
||||||
|
- traefik.tcp.routers.adguardhome_tcp.rule=HostSNI(`*`)
|
||||||
|
- traefik.tcp.routers.adguardhome_tcp.service=adguardhome_dns_service
|
||||||
|
- traefik.tcp.services.adguardhome_dns_service.loadbalancer.server.port=53
|
||||||
- traefik.http.routers.adguardhome.entrypoints=https
|
- traefik.http.routers.adguardhome.entrypoints=https
|
||||||
- traefik.http.routers.adguardhome.rule=Host(`guard.${DOMAIN}`)
|
- traefik.http.routers.adguardhome.rule=Host(`guard.${DOMAIN}`)
|
||||||
- traefik.http.routers.adguardhome.tls.certresolver=le
|
- traefik.http.routers.adguardhome.tls.certresolver=le
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ services:
|
|||||||
# Use the latest v3.0.x Traefik image available
|
# Use the latest v3.0.x Traefik image available
|
||||||
image: traefik:latest
|
image: traefik:latest
|
||||||
ports:
|
ports:
|
||||||
|
# - target: 53
|
||||||
|
# published: 53
|
||||||
|
# mode: host
|
||||||
- target: 80
|
- target: 80
|
||||||
published: 80
|
published: 80
|
||||||
mode: host
|
mode: host
|
||||||
@@ -109,6 +112,8 @@ services:
|
|||||||
- --entrypoints.http.http.redirections.entrypoint.to=https
|
- --entrypoints.http.http.redirections.entrypoint.to=https
|
||||||
- --entrypoints.http.http.redirections.entrypoint.scheme=https
|
- --entrypoints.http.http.redirections.entrypoint.scheme=https
|
||||||
- --entrypoints.http.http.redirections.entrypoint.permanent=true
|
- --entrypoints.http.http.redirections.entrypoint.permanent=true
|
||||||
|
# Create an entrypoint "dns" listening on port 53
|
||||||
|
# - --entrypoints.dns.address=:53
|
||||||
# Create an entrypoint "postgres-socket" listening on port 5432
|
# Create an entrypoint "postgres-socket" listening on port 5432
|
||||||
- --entrypoints.postgres-socket.address=:5432
|
- --entrypoints.postgres-socket.address=:5432
|
||||||
# Others entrypoints can be created, like a TCP entrypoint
|
# Others entrypoints can be created, like a TCP entrypoint
|
||||||
|
|||||||
Reference in New Issue
Block a user