Update ports in docker files

This commit is contained in:
Andrey Meshkov 2019-06-04 16:30:55 +03:00
parent 6261fb79ab
commit 454e26db7f
3 changed files with 2 additions and 33 deletions

View File

@ -20,7 +20,7 @@ COPY --from=build --chown=nobody:nogroup /src/AdGuardHome/AdGuardHome /opt/adgua
RUN setcap 'cap_net_bind_service=+eip' /opt/adguardhome/AdGuardHome
EXPOSE 53/tcp 53/udp 67/tcp 67/udp 68/tcp 68/udp 80/tcp 443/tcp 853/tcp 853/udp 3000/tcp
EXPOSE 53/tcp 53/udp 67/udp 68/udp 80/tcp 443/tcp 853/tcp 3000/tcp
VOLUME ["/opt/adguardhome/conf", "/opt/adguardhome/work"]

View File

@ -11,7 +11,7 @@ COPY --chown=nobody:nogroup ./AdGuardHome /opt/adguardhome/AdGuardHome
RUN setcap 'cap_net_bind_service=+eip' /opt/adguardhome/AdGuardHome
EXPOSE 53/tcp 53/udp 67/tcp 67/udp 68/tcp 68/udp 80/tcp 443/tcp 853/tcp 853/udp 3000/tcp
EXPOSE 53/tcp 53/udp 67/udp 68/udp 80/tcp 443/tcp 853/tcp 3000/tcp
VOLUME ["/opt/adguardhome/conf", "/opt/adguardhome/work"]

View File

@ -1,31 +0,0 @@
%YAML 1.2
---
# https://docs.docker.com/compose/compose-file/
version: '2.4'
services:
adguard-home:
image: adguard/adguardhome:armhf-latest
init: true
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/tcp"
- "67:67/udp"
- "68:68/tcp"
- "68:68/udp"
- "80:80/tcp"
- "443:443/tcp"
- "853:853/tcp"
- "853:853/udp"
- "3000:3000/tcp"
volumes:
- /opt/adguard-home:/opt/adguardhome/conf
- /srv/adguard-home:/opt/adguardhome/work
#user: nobody
read_only: true
restart: always
...