Skip to content

Commit 8ac920d

Browse files
committed
Merge branch 'main' of github.com:binwiederhier/ntfy
2 parents 239c620 + f2e600d commit 8ac920d

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ LABEL org.opencontainers.image.licenses="Apache-2.0, GPL-2.0"
99
LABEL org.opencontainers.image.title="ntfy"
1010
LABEL org.opencontainers.image.description="Send push notifications to your phone or desktop using PUT/POST"
1111

12-
RUN apk add --no-cache tzdata
12+
RUN apk add --no-cache tzdata \
13+
&& adduser -D -u 1000 ntfy
1314
COPY ntfy /usr/bin
1415

1516
EXPOSE 80/tcp

Dockerfile-arm

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ LABEL org.opencontainers.image.description="Send push notifications to your phon
1212
# Alpine does not support adding "tzdata" on ARM anymore, see
1313
# https://github.com/binwiederhier/ntfy/issues/894
1414

15+
RUN adduser -D -u 1000 ntfy
1516
COPY ntfy /usr/bin
1617

1718
EXPOSE 80/tcp

Dockerfile-build

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ LABEL org.opencontainers.image.licenses="Apache-2.0, GPL-2.0"
5353
LABEL org.opencontainers.image.title="ntfy"
5454
LABEL org.opencontainers.image.description="Send push notifications to your phone or desktop using PUT/POST"
5555

56+
RUN adduser -D -u 1000 ntfy
5657
COPY --from=builder /app/dist/ntfy_linux_server/ntfy /usr/bin/ntfy
5758

5859
EXPOSE 80/tcp

docs/examples.md

+3
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,12 @@ services:
162162
image: containrrr/watchtower
163163
environment:
164164
- WATCHTOWER_NOTIFICATIONS=shoutrrr
165+
- WATCHTOWER_NOTIFICATION_SKIP_TITLE=True
165166
- WATCHTOWER_NOTIFICATION_URL=ntfy://ntfy.sh/my_watchtower_topic?title=WatchtowerUpdates
166167
```
167168

169+
The environment variable `WATCHTOWER_NOTIFICATION_SKIP_TITLE` is required to prevent Watchtower from [replacing the `title` query parameter](https://containrrr.dev/watchtower/notifications/#settings). If omitted, the provided notification title will not be used.
170+
168171
Or, if you only want to send notifications using shoutrrr:
169172
```
170173
shoutrrr send -u "ntfy://ntfy.sh/my_watchtower_topic?title=WatchtowerUpdates" -m "testMessage"

0 commit comments

Comments
 (0)