2023-09-26 16:09:27 +00:00
|
|
|
# 2023-09-26
|
2023-09-25 08:40:20 +00:00
|
|
|
# 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:
|
2023-09-26 16:09:27 +00:00
|
|
|
cpu: "{{ vm_os_cpu_max }}"
|
|
|
|
memory: "{{ 1.0 if 1.0 <= vm_os_memory_max|float else vm_os_memory_max|float }}G"
|
2023-09-25 08:40:20 +00:00
|
|
|
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: []
|