mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-10 01:06:17 +00:00
- 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.
29 lines
1.0 KiB
YAML
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"] |