Advertisement
theinhumaneme

adguard

Nov 30th, 2023
1,007
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.18 KB | None | 0 0
  1. version: '3.7'
  2. services:
  3.   adguard:
  4.     container_name: adguard
  5.     image: adguard/adguardhome
  6.     restart: unless-stopped
  7.     ports:
  8. #      - "53:53/tcp"
  9. #      - "53:53/udp"
  10.       - "853:853/tcp"
  11.       - "9001:80/tcp"
  12.       - "9002:443/tcp"
  13. #      - "9003:3000/tcp"
  14.     #  Therese 3 are required if you want to use AdGuard as a DHCP server
  15.     #  - "67:67/udp"
  16.     #  - "68:68/tcp"
  17.     #  - "68:68/udp"
  18.     networks:
  19.     - dns-network  
  20.     volumes:
  21.      - ./conf:/opt/adguardhome/conf
  22.       - ./data:/opt/adguardhome/work
  23.       - ./certs:/opt/adguardhome/certs  # remember to put this path in the UI too
  24.   pihole:
  25.     container_name: pihole
  26.     image: pihole/pihole:2023.11.0
  27.     depends_on:
  28.      - adguard
  29.     ports:
  30.      - "53:53/tcp"
  31.       - "53:53/udp"
  32. #      - "67:67/udp"
  33.       - "9008:80/tcp"
  34.       - "9009:443/tcp"
  35.     environment:
  36.       TZ: 'Asia/Kolkata' #this is the time zone
  37.     volumes:
  38.       - './etc-pihole/:/etc/pihole/'
  39.        - './etc-dnsmasq.d/:/etc/dnsmasq.d/'
  40.     dns:
  41.      - 1.1.1.1
  42.     cap_add:
  43.      - NET_ADMIN
  44.     networks:
  45.      - dns-network
  46.     restart: unless-stopped
  47. networks:
  48.     dns-network:
  49.         external: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement