Create NTFY
This commit is contained in:
@@ -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/<username>/ntfy/...)
|
||||||
|
NTFY_USERNAME=ntfy
|
||||||
|
|
||||||
|
# Timezone for the container (e.g. America/New_York)
|
||||||
|
TZ=America/Los_Angeles
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user