Files
Microsoft-Rewards-Bot/compose.yaml
LightZirconite 43ed6cd7f8 refactor: remove legacy scheduling and analytics code
- Deleted the scheduler module and its associated functions, transitioning to OS-level scheduling.
- Removed the Analytics module and its related interfaces, retaining only a placeholder for backward compatibility.
- Updated ConfigValidator to warn about legacy schedule and analytics configurations.
- Cleaned up StartupValidator to remove diagnostics and schedule validation logic.
- Adjusted Load.ts to handle legacy flags for diagnostics and analytics.
- Removed unused diagnostics capturing functionality.
2025-11-03 19:18:09 +01:00

29 lines
1.0 KiB
YAML

services:
microsoft-rewards-bot:
build: .
container_name: microsoft-rewards-bot
restart: unless-stopped
# Volume mounts: Specify a location where you want to save the files on your local machine.
volumes:
- ./src/accounts.jsonc:/app/src/accounts.jsonc:ro
- ./src/config.jsonc:/app/src/config.jsonc:ro
- ./sessions:/app/sessions
environment:
TZ: "America/Toronto" # Set your timezone for logging (and cron if enabled)
NODE_ENV: "production"
# Force headless when running in Docker (uses Chromium Headless Shell only)
FORCE_HEADLESS: "1"
# Optional: enable in-container cron scheduling
#USE_CRON: "true"
#CRON_SCHEDULE: "0 9 * * *" # Daily at 9 AM (see https://crontab.guru)
#RUN_ON_START: "true" # Run once immediately on container start
# Security hardening
security_opt:
- no-new-privileges:true
# Default: single run per container start
command: ["node", "--enable-source-maps", "./dist/index.js"]