# 2023-09-25 # Stack: ntfy --- ntfy: name: "ntfy" tasks: - ntfy.yml ipv6: true traefik: true directories: - "{{ stack_folder_conf }}/ntfy/conf" - "{{ stack_folder_datas }}/ntfy/datas" services: - name: "ntfy" image: "binwiederhier/ntfy:latest" restart: "always" ports: - { exposed: "${VM_PORT_NTFY}", container: "80" } - { exposed: "${VM_PORT_NTFY_METRICS}", container: "9090" } commands: - serve healthcheck: 'wget --no-verbose --tries=1 --spider http://0.0.0.0:80/ || exit 1' ressources: memory: 1G volumes: - { local: './{{ stack_folder_conf }}/ntfy/conf', container: '/etc/ntfy', mode: 'ro' } - { local: './{{ stack_folder_datas }}/ntfy/datas', container: '/var/cache/ntfy', mode: 'rw' } traefik: routers: - { name: "ntfy", rule: "Host(`{{ vm_subdomain_ntfy }}.{{ vm_internet_domain }}`)", middlewares: "default@file" } services: []