diff --git a/playbooks/templates/apprise-compose.yml b/playbooks/templates/apprise-compose.yml new file mode 100644 index 0000000..f195d8a --- /dev/null +++ b/playbooks/templates/apprise-compose.yml @@ -0,0 +1,33 @@ +services: + apprise-api: + image: caronc/apprise:latest + container_name: apprise-api + restart: unless-stopped + ports: + - "8000:8000" + volumes: + - apprise_config:/config + - apprise_store:/store + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro + environment: + - APPRISE_CONFIG_LOCK=${APPRISE_CONFIG_LOCK:-no} + - APPRISE_STATELESS_URLS=${APPRISE_STATELESS_URLS:-} + - APPRISE_STORAGE_PATH=/store + - APPRISE_STORAGE_PRUNE_DAYS=${APPRISE_STORAGE_PRUNE_DAYS:-30} + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8000/status"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 10s + networks: + - pangolin + +volumes: + apprise_config: + apprise_store: + +networks: + pangolin: + external: true \ No newline at end of file