# AdGuard Home - DNS ad blocker
# Port: 3000 (web), 53 (DNS)
# Network-wide ad blocking via DNS

services:
  adguard:
    image: adguard/adguardhome
    container_name: AdGuard
    mem_limit: 2g
    cpu_shares: 768
    security_opt:
      - no-new-privileges:true
    restart: on-failure:5
    network_mode: host
    volumes:
      - /volume1/docker/adguard/config:/opt/adguardhome/conf:rw
      - /volume1/docker/adguard/data:/opt/adguardhome/work:rw
    environment:
      TZ: America/Los_Angeles
