feat: use address for routing

This commit is contained in:
2026-01-28 03:41:15 +00:00
parent 27b5d20b49
commit 021cef6e25

View File

@@ -13,15 +13,9 @@ services:
traefik.http.routers.adguard.rule: "Host(`adguard.${DOMAIN}`)" traefik.http.routers.adguard.rule: "Host(`adguard.${DOMAIN}`)"
traefik.http.routers.adguard.entrypoints: "https" traefik.http.routers.adguard.entrypoints: "https"
traefik.http.routers.adguard.tls.certresolver: "cloudflare" traefik.http.routers.adguard.tls.certresolver: "cloudflare"
traefik.http.services.adguard.loadbalancer.server.port: "6969"
traefik.http.routers.adguard.middlewares: "voidauth@docker" traefik.http.routers.adguard.middlewares: "voidauth@docker"
traefik.tcp.services.adguard.loadbalancer.server.address: "${HOST_IP}:6969"
network_mode: host network_mode: host
volumes: volumes:
- ${CONFIG_ROOT}/adguard/work:/opt/adguardhome/work - ${CONFIG_ROOT}/adguard/work:/opt/adguardhome/work
- ${CONFIG_ROOT}/adguard/conf:/opt/adguardhome/conf - ${CONFIG_ROOT}/adguard/conf:/opt/adguardhome/conf
networks:
- traefik_public
networks:
traefik_public:
external: true