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/New_York} restart: unless-stopped