apprise: changed to simple stateful setup
This commit is contained in:
@@ -4,10 +4,16 @@ services:
|
|||||||
image: caronc/apprise:v1.3.3
|
image: caronc/apprise:v1.3.3
|
||||||
container_name: apprise_app
|
container_name: apprise_app
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:{{ apprise_external_port }}:8000"
|
||||||
networks:
|
networks:
|
||||||
- "web_proxy_network"
|
- "web_proxy_network"
|
||||||
|
volumes:
|
||||||
|
- "{{ config_dir }}:/config"
|
||||||
environment:
|
environment:
|
||||||
APPRISE_STATEFUL_MODE: disabled
|
PUID: "{{ owner_create_result.uid }}"
|
||||||
|
PGID: "{{ owner_create_result.group }}"
|
||||||
|
APPRISE_STATEFUL_MODE: simple
|
||||||
APPRISE_WORKER_COUNT: 1
|
APPRISE_WORKER_COUNT: 1
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
tgram://{{ notifications_tg_bot_token }}/{{ notifications_tg_chat_id }}
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- vars/secrets.yml
|
- vars/secrets.yml
|
||||||
|
- vars/vars.yml
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
app_name: "apprise"
|
app_name: "apprise"
|
||||||
@@ -11,6 +12,7 @@
|
|||||||
app_owner_uid: 1104
|
app_owner_uid: 1104
|
||||||
app_owner_gid: 1104
|
app_owner_gid: 1104
|
||||||
base_dir: "{{ (application_dir, app_name) | path_join }}"
|
base_dir: "{{ (application_dir, app_name) | path_join }}"
|
||||||
|
config_dir: "{{ (base_dir, 'config') | path_join }}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Create user and environment"
|
- name: "Create user and environment"
|
||||||
@@ -31,6 +33,15 @@
|
|||||||
mode: "0750"
|
mode: "0750"
|
||||||
loop:
|
loop:
|
||||||
- "{{ base_dir }}"
|
- "{{ base_dir }}"
|
||||||
|
- "{{ config_dir }}"
|
||||||
|
|
||||||
|
- name: "Copy apprise config"
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: "./files/{{ app_name }}/server.cfg.j2"
|
||||||
|
dest: "{{ config_dir }}/server.cfg"
|
||||||
|
owner: "{{ app_user }}"
|
||||||
|
group: "{{ app_user }}"
|
||||||
|
mode: "0640"
|
||||||
|
|
||||||
- name: "Copy docker compose file"
|
- name: "Copy docker compose file"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
apprise_external_port: 8000
|
||||||
|
apprise_external_url: "http://127.0.0.1:{{ apprise_external_port }}"
|
||||||
Reference in New Issue
Block a user