Skip to content

Commit

Permalink
fix dns
Browse files Browse the repository at this point in the history
  • Loading branch information
LegitCamper committed Sep 15, 2024
1 parent bce565b commit 0f8aa0b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
15 changes: 13 additions & 2 deletions docker/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ networks:
external: true
internal:
external: false
# This network exists just so adugard can have a static ip for tcp routing
dns:
ipam:
config:
- subnet: 172.55.0.0/24

volumes:
db-data:
Expand Down Expand Up @@ -228,10 +233,12 @@ services:
- /home/sawyer/compose-files/docker/traefik/dynamic.toml:/etc/traefik/dynamic.toml:ro
networks:
- web
- dns
ports:
- "80:80"
- "443:443"
- "853:853"
expose:
- "8080:8080"

traefik-forward-auth:
Expand All @@ -254,14 +261,18 @@ services:
container_name: adguardhome
restart: always
networks:
- web
dns:
ipv4_address: 172.55.0.10
volumes:
- adgaurd-conf:/opt/adguardhome/conf:rw
- adguard-work:/opt/adguardhome/work:rw
- certbot:/opt/adguardhome/certs/:rw
expose:
- 80 # http
- 853 # dot
- 53 # dns
# these two are terminated by traefik and forwarded over 80 & 53
# and are uneeded
# - 853 # dot
- 443 # doh

dashy:
Expand Down
4 changes: 2 additions & 2 deletions docker/traefik/dynamic.toml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ certResolver = "cloudflare"

[http.services.doh.loadBalancer]
[[http.services.doh.loadBalancer.servers]]
url = "http://adguard:443"
url = "http://adguard:80" # its already terminated

[tcp.routers.dot]
entryPoints = ["dot"]
Expand All @@ -171,4 +171,4 @@ certResolver = "cloudflare"

[tcp.services.dot.loadBalancer]
[[tcp.services.dot.loadBalancer.servers]]
address = "adguard:853"
address = "172.55.0.10:53" # its already terminated

0 comments on commit 0f8aa0b

Please sign in to comment.