selfhost/push/docker-compose.yaml

41 lines
1.2 KiB
YAML
Raw Permalink Normal View History

services:
ntfy:
image: binwiederhier/ntfy:${NTFY_VERSION}
restart: unless-stopped
2024-10-15 13:42:01 +02:00
networks:
- web
command:
- serve
environment:
- TZ=UTC
2024-10-24 15:46:51 +02:00
- NTFY_BASE_URL=https://${FQDN_PUSH}
- NTFY_LISTEN_HTTP=0.0.0.0:80
- NTFY_CACHE_FILE=/var/cache/ntfy/cache.db
- NTFY_CACHE_DURATION=24h
- NTFY_BEHIND_PROXY=true
- NTFY_ATTACHMENT_CACHE_DIR=/var/cache/ntfy/attachments
- NTFY_KEEPALIVE_INTERVAL=45s
- NTFY_AUTH_DEFAULT_ACCESS=deny-all
- NTFY_AUTH_FILE=/var/lib/ntfy/user.db
- NTFY_ENABLE_SIGNUP=false
- NTFY_ENABLE_LOGIN=true
- NTFY_ENABLE_RESERVATIONS=false
volumes:
- ${STORAGE_PATH}/ntfy/cache/:/var/cache/ntfy
- ${STORAGE_PATH}/ntfy/varlib/:/var/lib/ntfy/
labels:
- "traefik.enable=true"
2024-10-24 15:46:51 +02:00
- "traefik.http.routers.push.rule=Host(`${FQDN_PUSH}`)"
- "traefik.http.routers.push.entrypoints=websecure"
- "traefik.http.routers.push.tls.certresolver=netcup"
- "traefik.http.routers.push.tls.options=intermediate@file"
- "traefik.http.services.push.loadbalancer.server.port=80"
- "docker.group=push"
2024-10-15 13:35:52 +02:00
networks:
web:
external: true