Massprice/docker-compose.yml
Barely Removable 3b08af7938
All checks were successful
Deploy / deploy (push) Successful in 25s
Default to America/Phoenix and email-alert once when the session expires
Phoenix doesn't observe DST, so schedule times stay meaningful
year-round without needing a seasonal adjustment.

notify.py reuses lunch-notifier's existing Gmail-SMTP-with-app-password
pattern rather than adding a new notification channel. The alert fires
exactly once per expiry (not on every failed scheduled run while it's
down) via a dedupe flag in notify_state.json, reset the moment a fresh
session is successfully imported.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H6TgffxTvYhqxykAbVQg2v
2026-08-31 20:20:06 -07:00

22 lines
781 B
YAML

services:
massprice:
build: .
container_name: massprice
# Headless Chromium's default /dev/shm (64MB) is too small in Docker
# and causes renderer crashes — this is the standard mitigation.
shm_size: "1gb"
ports:
- "${HOST_PORT:-5057}:5000"
volumes:
# Schedules, run history, the rule-name cache, and the saved
# MassPrice login session must outlive `up -d --build`, which
# recreates the container and discards its filesystem.
- ./data:/data
environment:
- LOGIN_PASSWORD=${LOGIN_PASSWORD}
- SECRET_KEY=${SECRET_KEY}
- TZ=${TZ:-America/Phoenix}
- GMAIL_USER=${GMAIL_USER:-}
- GMAIL_APP_PASSWORD=${GMAIL_APP_PASSWORD:-}
- ALERT_EMAIL=${ALERT_EMAIL:-}
restart: unless-stopped