init commit
This commit is contained in:
25
tasks/ntfy.yml
Normal file
25
tasks/ntfy.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
- name: Create folder structure
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- "{{ data_dir }}/ntfy"
|
||||
- "{{ data_dir }}/ntfy/cache"
|
||||
- "{{ data_dir }}/ntfy/data"
|
||||
|
||||
- name: Create Ntfy Docker Container
|
||||
docker_container:
|
||||
name: ntfy
|
||||
image: binwiederhier/ntfy
|
||||
command: serve
|
||||
restart_policy: unless-stopped
|
||||
recreate: true
|
||||
networks:
|
||||
- name: homelab
|
||||
volumes:
|
||||
- "{{ data_dir }}/ntfy/cache:/var/cache/ntfy"
|
||||
- "{{ data_dir }}/ntfy/data:/etc/ntfy"
|
||||
env:
|
||||
UPSTREAM_BASE_URL: "{{ NTFY_UPSTREAM_BASE_URL }}"
|
||||
BASE_URL: "{{ NTFY_BASE_URL }}"
|
Reference in New Issue
Block a user