Add exposed ports
This commit is contained in:
parent
0d5f24927c
commit
e33c8a3cde
|
@ -34,7 +34,7 @@ AdGuard Home operates as a DNS server that re-routes tracking domains to a "blac
|
||||||
To run `AdGuardHome` image:
|
To run `AdGuardHome` image:
|
||||||
|
|
||||||
```bash
|
```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.
|
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:
|
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,
|
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,
|
||||||
|
|
|
@ -16,7 +16,7 @@ RUN apk --no-cache --update add ca-certificates && \
|
||||||
|
|
||||||
COPY --from=build /src/AdGuardHome/AdGuardHome /opt/adguardhome/AdGuardHome
|
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"]
|
VOLUME ["/opt/adguardhome/conf", "/opt/adguardhome/work"]
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ RUN apk --no-cache --update add ca-certificates && \
|
||||||
|
|
||||||
COPY ./AdGuardHome /opt/adguardhome/AdGuardHome
|
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"]
|
VOLUME ["/opt/adguardhome/conf", "/opt/adguardhome/work"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue