Skip to content

Commit 747787c

Browse files
committed
Add 123/udp to docker compose example and Dockerfile
Signed-off-by: casperklein <[email protected]>
1 parent 6324ec7 commit 747787c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ services:
6767
- "80:80/tcp"
6868
# Default HTTPs Port. FTL will generate a self-signed certificate
6969
- "443:443/tcp"
70-
# Uncomment the below if using Pi-hole as your DHCP Server
70+
# Uncomment the line below if you are using Pi-hole as your DHCP server
7171
#- "67:67/udp"
72+
# Uncomment the line below if you are using Pi-hole as your NTP server
73+
#- "123:123/udp"
7274
environment:
7375
# Set the appropriate timezone for your location (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g:
7476
TZ: 'Europe/London'

src/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ COPY --chmod=0755 start.sh /usr/bin/start.sh
8282
EXPOSE 53 53/udp
8383
EXPOSE 67/udp
8484
EXPOSE 80
85+
EXPOSE 123/udp
8586
EXPOSE 443
8687

8788
## 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; \
9899
elif [ "$TARGETPLATFORM" = "linux/riscv64" ]; then FTLARCH=riscv64; \
99100
else FTLARCH=amd64; fi \
100101
&& echo "Arch: ${TARGETPLATFORM}, FTLARCH: ${FTLARCH}" \
101-
&& 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 \
102+
&& 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 \
102103
&& curl -sSL "${URL}/pihole-FTL-${FTLARCH}" -o /usr/bin/pihole-FTL \
103104
&& chmod +x /usr/bin/pihole-FTL \
104105
&& readelf -h /usr/bin/pihole-FTL || (echo "Error with downloaded FTL binary" && exit 1) \

0 commit comments

Comments
 (0)