CI / test-and-package (push) Successful in 33s
- meal-cron now runs send_reminders_cron.sh (simple wget loop, no DB mount) - New /api/cron-tick endpoint handles all timezone logic server-side - base_url captured from request.host_url when user saves ntfy settings, stored per-user — no APP_BASE_URL env var needed - Cron endpoint protected by CRON_SECRET shared env var - Removed send_reminders_cron.py, DB volume from cron container - tests: 3 new cron-tick + base_url capture tests (69 total)
35 lines
658 B
YAML
35 lines
658 B
YAML
services:
|
|
meal-tracker:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "5000:5000"
|
|
volumes:
|
|
- meal-data:/data
|
|
environment:
|
|
- SECRET_KEY=${SECRET_KEY:-change-me-in-production}
|
|
- CRON_SECRET=${CRON_SECRET:-change-me}
|
|
restart: unless-stopped
|
|
hostname: meal-tracker
|
|
networks:
|
|
- caddy
|
|
|
|
meal-cron:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
command: ["sh", "/app/send_reminders_cron.sh"]
|
|
environment:
|
|
- CRON_SECRET=${CRON_SECRET:-change-me}
|
|
restart: unless-stopped
|
|
networks:
|
|
- caddy
|
|
|
|
volumes:
|
|
meal-data:
|
|
|
|
networks:
|
|
caddy:
|
|
external: true
|