29 lines
884 B
YAML
29 lines
884 B
YAML
services:
|
|
lwvwv-subscriber:
|
|
build:
|
|
context: ..
|
|
dockerfile: Dockerfile
|
|
image: lwvwv-subscriber
|
|
container_name: lwvwv-subscriber
|
|
volumes:
|
|
# Mount parent directory env file (source of truth)
|
|
- ../env:/app/env:ro
|
|
# Mount session file for portal authentication
|
|
- ../.session.json:/app/.session.json:ro
|
|
# Optional: Persist roster files for debugging
|
|
- ./rosters:/tmp/rosters
|
|
networks:
|
|
- default
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
# Ofelia labels for scheduling (4x daily)
|
|
labels:
|
|
ofelia.enabled: "true"
|
|
ofelia.job-exec.lwvwv-subscribe.schedule: "0 0 0,6,12,18 * * *"
|
|
ofelia.job-exec.lwvwv-subscribe.container: "lwvwv-subscriber"
|
|
ofelia.job-exec.lwvwv-subscribe.command: "/app/run-subscription.sh"
|
|
restart: always
|