mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2025-12-20 02:18:51 +00:00
Add 123/udp to docker compose example and Dockerfile
Signed-off-by: casperklein <casperklein@users.noreply.github.com>
This commit is contained in:
@@ -67,8 +67,10 @@ services:
|
|||||||
- "80:80/tcp"
|
- "80:80/tcp"
|
||||||
# Default HTTPs Port. FTL will generate a self-signed certificate
|
# Default HTTPs Port. FTL will generate a self-signed certificate
|
||||||
- "443:443/tcp"
|
- "443:443/tcp"
|
||||||
# Uncomment the below if using Pi-hole as your DHCP Server
|
# Uncomment the line below if you are using Pi-hole as your DHCP server
|
||||||
#- "67:67/udp"
|
#- "67:67/udp"
|
||||||
|
# Uncomment the line below if you are using Pi-hole as your NTP server
|
||||||
|
#- "123:123/udp"
|
||||||
environment:
|
environment:
|
||||||
# Set the appropriate timezone for your location (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g:
|
# Set the appropriate timezone for your location (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g:
|
||||||
TZ: 'Europe/London'
|
TZ: 'Europe/London'
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ COPY --chmod=0755 start.sh /usr/bin/start.sh
|
|||||||
EXPOSE 53 53/udp
|
EXPOSE 53 53/udp
|
||||||
EXPOSE 67/udp
|
EXPOSE 67/udp
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
EXPOSE 123/udp
|
||||||
EXPOSE 443
|
EXPOSE 443
|
||||||
|
|
||||||
## Buildkit can do some fancy stuff and we can use it to either download FTL from ftl.pi-hole.net or use a local copy
|
## Buildkit can do some fancy stuff and we can use it to either download FTL from ftl.pi-hole.net or use a local copy
|
||||||
@@ -98,7 +99,7 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then FTLARCH=amd64; \
|
|||||||
elif [ "$TARGETPLATFORM" = "linux/riscv64" ]; then FTLARCH=riscv64; \
|
elif [ "$TARGETPLATFORM" = "linux/riscv64" ]; then FTLARCH=riscv64; \
|
||||||
else FTLARCH=amd64; fi \
|
else FTLARCH=amd64; fi \
|
||||||
&& echo "Arch: ${TARGETPLATFORM}, FTLARCH: ${FTLARCH}" \
|
&& echo "Arch: ${TARGETPLATFORM}, FTLARCH: ${FTLARCH}" \
|
||||||
&& if [ "${FTL_BRANCH}" = "master" ]; then URL="https://github.com/pi-hole/ftl/releases/latest/download"; else URL="https://ftl.pi-hole.net/${FTL_BRANCH}"; fi \
|
&& if [ "${FTL_BRANCH}" = "master" ]; then URL="https://github.com/pi-hole/ftl/releases/latest/download"; else URL="https://ftl.pi-hole.net/${FTL_BRANCH}"; fi \
|
||||||
&& curl -sSL "${URL}/pihole-FTL-${FTLARCH}" -o /usr/bin/pihole-FTL \
|
&& curl -sSL "${URL}/pihole-FTL-${FTLARCH}" -o /usr/bin/pihole-FTL \
|
||||||
&& chmod +x /usr/bin/pihole-FTL \
|
&& chmod +x /usr/bin/pihole-FTL \
|
||||||
&& readelf -h /usr/bin/pihole-FTL || (echo "Error with downloaded FTL binary" && exit 1) \
|
&& readelf -h /usr/bin/pihole-FTL || (echo "Error with downloaded FTL binary" && exit 1) \
|
||||||
|
|||||||
Reference in New Issue
Block a user