mirror of
https://github.com/TheNetsky/Microsoft-Rewards-Script.git
synced 2026-01-10 18:36:17 +00:00
* Improve env var handling, clarify instructions updateConfig.js will update dist/config.json with any values specified in the docker compose file as environmental variables (env vars). If not specified it will use the default values in src/config.json (the 'usual' place where folks can customize their config). A user can make changes to an env var (e.g., disabling Scroll Random Results), then docker compose up -d to quickly restart the container with the change. * minor update to env vars in table Make sure to change your compose so the updated flattened values work. * TZ handling for cron runs of the script docker logs netsky should now show the proper time zone for script runs that were initiated via cron schedule.
13 lines
493 B
YAML
13 lines
493 B
YAML
services:
|
|
microsoft-rewards-script:
|
|
build: .
|
|
container_name: netsky
|
|
environment:
|
|
- TZ=America/Toronto #change to your local timezone
|
|
- NODE_ENV=production
|
|
- HEADLESS=true #do not change
|
|
### Customize your run schedule, default 5:00 am and 11:00 am, use crontab.guru for formatting
|
|
- CRON_START_TIME=0 5,11 * * *
|
|
### Run on start, set to false to only run the script per the cron schedule
|
|
- RUN_ON_START=true
|
|
restart: unless-stopped |