Adguard Home with docker-compose

Docker Compose Preview:

version: "3.1"
services:
   adguardhome:
     image: adguard/adguardhome
     network_mode: host
     container_name: adguardhome
     volumes:
       - /mnt/4tb/adguard/work:/opt/adguardhome/work
       - /mnt/4tb/adguard/conf:/opt/adguardhome/conf

I am using the image: adguard/adguardhome and I added network_mode: host because I want all 7 of my stores connect to this DNS server, I create the Volumes path to create to keep my workdir and Confdir.

I create the path where I mount the 4TB External drive to save all data and config.

mkdir -p /mnt/4tb/adguard/

--- not need create work or config folder because this docker compose will copy work and conf to our 4tb external drive.

Leave a Comment