From cae436a20d06ce2f6f9d893c3a8c8056e4712c8d Mon Sep 17 00:00:00 2001 From: Gemini Agent Date: Sun, 25 Jan 2026 02:25:48 +0000 Subject: [PATCH] Add scheduler service for push notifications --- docker-compose.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 812c3e0..6669534 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,6 +31,24 @@ services: retries: 3 start_period: 40s + scheduler: + image: alpine + restart: unless-stopped + depends_on: + app: + condition: service_healthy + entrypoint: /bin/sh + command: > + -c "apk add --no-cache curl && + while true; do + echo 'Triggering notification check...' && + curl -s -X POST http://app:3000/api/notifications/send && + echo '' && + sleep 60; + done" + networks: + - nextstep-network + db: image: postgres:16-alpine container_name: nextstep-db