From e33c8a3cde35ac06a34099ecd94b29b4d9721744 Mon Sep 17 00:00:00 2001 From: Eugene Zbiranik Date: Tue, 12 Feb 2019 11:54:40 +0300 Subject: [PATCH] Add exposed ports --- Docker.md | 4 ++-- Dockerfile | 2 +- Dockerfile.travis | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Docker.md b/Docker.md index f98e0c46..db3cc832 100644 --- a/Docker.md +++ b/Docker.md @@ -34,7 +34,7 @@ AdGuard Home operates as a DNS server that re-routes tracking domains to a "blac To run `AdGuardHome` image: ```bash -docker run -d -p 53:53 -p 53:53/udp -p 3000:3000 adguard/adguardhome +docker run -d --net=host adguard/adguardhome ``` Now open the browser and navigate to http://DOCKER_HOST_IP:3000/ to control your AdGuard Home service. @@ -66,7 +66,7 @@ Create a **config** directory on a suitable volume on your host system, e.g. **/ Start your `adguard/adguardhome` container like this: ``` -docker run --name adguardhome -v /my/own/workdir:/opt/adguardhome/work -v /my/own/confdir:/opt/adguardhome/conf -d -p 53:53 -p 53:53/udp -p 3000:3000 adguard/adguardhome +docker run --name adguardhome -v /my/own/workdir:/opt/adguardhome/work -v /my/own/confdir:/opt/adguardhome/conf -d --net=host adguard/adguardhome ``` The `-v /my/own/workdir:/opt/adguardhome/work` part of the command mounts the `/my/own/workdir` directory from the underlying host system as `/opt/adguardhome/work` inside the container, diff --git a/Dockerfile b/Dockerfile index 3b93e081..afb45ed8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ RUN apk --no-cache --update add ca-certificates && \ COPY --from=build /src/AdGuardHome/AdGuardHome /opt/adguardhome/AdGuardHome -EXPOSE 53 3000 +EXPOSE 53/tcp 53/udp 67/tcp 67/udp 68/tcp 68/udp 80/tcp 443/tcp 853/tcp 853/udp 3000/tcp VOLUME ["/opt/adguardhome/conf", "/opt/adguardhome/work"] diff --git a/Dockerfile.travis b/Dockerfile.travis index 4aa05e6c..327ccb8d 100644 --- a/Dockerfile.travis +++ b/Dockerfile.travis @@ -8,7 +8,7 @@ RUN apk --no-cache --update add ca-certificates && \ COPY ./AdGuardHome /opt/adguardhome/AdGuardHome -EXPOSE 53 3000 +EXPOSE 53/tcp 53/udp 67/tcp 67/udp 68/tcp 68/udp 80/tcp 443/tcp 853/tcp 853/udp 3000/tcp VOLUME ["/opt/adguardhome/conf", "/opt/adguardhome/work"]