From ede4722b69098bf9da1fd3874bae7f6212922918 Mon Sep 17 00:00:00 2001 From: Derek Cooper Date: Tue, 28 Apr 2026 22:02:08 -0700 Subject: [PATCH] Create NTFY --- Ntfy/.env.example | 8 ++++++++ Ntfy/docker-compose-bind.yaml | 17 +++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 Ntfy/.env.example create mode 100644 Ntfy/docker-compose-bind.yaml diff --git a/Ntfy/.env.example b/Ntfy/.env.example new file mode 100644 index 0000000..f2d4082 --- /dev/null +++ b/Ntfy/.env.example @@ -0,0 +1,8 @@ +# Port to expose ntfy on the host +NTFY_PORT=80 + +# Username used to build the bind mount paths (e.g. /home//ntfy/...) +NTFY_USERNAME=ntfy + +# Timezone for the container (e.g. America/New_York) +TZ=America/Los_Angeles diff --git a/Ntfy/docker-compose-bind.yaml b/Ntfy/docker-compose-bind.yaml new file mode 100644 index 0000000..d00f959 --- /dev/null +++ b/Ntfy/docker-compose-bind.yaml @@ -0,0 +1,17 @@ +services: + ntfy: + image: binwiederhier/ntfy:latest + container_name: ntfy + ports: + - "${NTFY_PORT}:80" + volumes: + - /home/${NTFY_USERNAME}/ntfy/server.yml:/etc/ntfy/server.yml + - /home/${NTFY_USERNAME}/ntfy/data:/var/lib/ntfy + environment: + - TZ=${TZ} + command: serve + deploy: + resources: + limits: + memory: 512M + restart: unless-stopped \ No newline at end of file