diff --git a/docker-compose.yml b/docker-compose.yml index 2b45635..132d01a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,15 +1,18 @@ services: - app: + app: build: . volumes: - ./data/db:/opt/app/data/db + depends_on: + - apprise apprise: image: caronc/apprise:latest + hostname: apprise environment: - APPRISE_WORKER_COUNT=1 - APPRISE_STATEFUL_MODE=simple - - PUID=$(id -u) - - PGID=$(id -g) + # - PUID=$(id -u) + # - PGID=$(id -g) volumes: - ./data/apprise/config:/config - ./data/apprise/plugin:/plugin diff --git a/src/app.ts b/src/app.ts index 384df25..86f295e 100644 --- a/src/app.ts +++ b/src/app.ts @@ -114,7 +114,7 @@ async function main( ) { })( ev ); const title = `${today_prefix ? "TODAY " : ""}${notification_prefix ? notification_prefix + ": " : ""} ${ev.title} (${ TEventType[ ev.event_type ] })`; - await fetch("http://localhost:8000/notify", { + await fetch("http://apprise:8000/notify", { method: "POST", headers: { "Content-Type": "application/json"