AdGuardHome Docker

Dockerfile

FROM alpine
MAINTAINER Ash McKenzie <ash@the-rebellion.net>

VOLUME /data

RUN apk update && apk add bash curl ca-certificates

ADD start.sh /
ADD data/ /data/
ADD AdGuardHome/ /app/

WORKDIR /data

CMD "/start.sh"

Trying out

docker run --rm -ti -p 53:53/udp -p 53:53/tcp -p 3000:3000 -e ServerIP='CONTAINER_IP_ADDRESS' ashmckenzie/adguard-home

Now visit http://<your-ip>:3000, login is admin and password is admin.. At this point everything should be working, but changes will not survive if the container is recreated.. See Running below.

Running

Within the container, /data/ is where configuration lives.

Run the following to generate the necessary configs:

docker run --rm -ti -v <your-data-dir>:/data ashmckenzie/adguard-home

You an press CTRL-C now.

You should now see the following in <your-data-dir>:

AdGuardHome
AdGuardHome.yaml
Corefile
dnsfilter.txt

You can now run the container in the background:

docker run -d -p 53:53/udp -p 53:53/tcp -p 3000:3000 ServerIP='CONTAINER_IP_ADDRESS' -v <your-data-dir>:/data ashmckenzie/adguard-home

Building

If you'd like to build your own image, simply run make build.