services: meal-tracker: build: context: . dockerfile: Dockerfile ports: - "5000:5000" volumes: - meal-data:/data environment: - SECRET_KEY=${SECRET_KEY:-change-me-in-production} restart: unless-stopped hostname: meal-tracker networks: - caddy meal-cron: build: context: . dockerfile: Dockerfile command: ["sh", "-c", "while true; do python3 /app/send_reminders_cron.py; sleep 60; done"] volumes: - meal-data:/data environment: - SECRET_KEY=${SECRET_KEY:-change-me-in-production} - APP_BASE_URL=${APP_BASE_URL:-http://meal-tracker:5000} restart: unless-stopped networks: - caddy volumes: meal-data: networks: caddy: external: true