Skip to content

ashmckenzie/adguard-home-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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

NOTE: Unfotunately the AdGuardHome binary needs to be coupled with the configs (AdguardTeam/AdGuardHome#381) but has been fixed in (https://github.com/AdguardTeam/AdGuardHome/commit/a528ed9f947d42f4324cd4f2263a015d34d7341f). I will update the image accordingly when there's a new version.

You can now run the container in the background:

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

Building

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