Add exposed ports

This commit is contained in:
Eugene Zbiranik 2019-02-12 11:54:40 +03:00
parent 0d5f24927c
commit e33c8a3cde
3 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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"]

View File

@ -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"]