This commit is contained in:
Mike Wilson
2023-02-01 11:57:25 -05:00
parent 9060206f9a
commit 2cec34cfc9
7 changed files with 93 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
version: "{{ docker_compose_version }}"
networks:
traefik:
external: true
services:
ntfy:
container_name: ntfy
image: binwiederhier/ntfy:latest
restart: unless-stopped
networks:
- traefik
user: "{{ primary_uid }}:{{ primary_gid }}"
environment:
- TZ={{ timezone }}
volumes:
- "{{ data_dir }}/ntfy:/etc/ntfy"
- /var/cache/ntfy:/var/cache/ntfy
labels:
traefik.enable: true
traefik.http.routers.ntfy.rule: "Host(`ntfy.{{ personal_domain }}`)"
traefik.http.routers.ntfy.middlewares: lan-whitelist@file