Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
71 lines (66 loc) · 3.66 KB
/
Copy pathcompose.yaml
File metadata and controls
71 lines (66 loc) · 3.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
services:
microsoft-rewards-script:
build:
context: .
image: microsoft-rewards-script:local
container_name: microsoft-rewards-script
restart: unless-stopped
stop_grace_period: 60s
volumes:
- ./config:/usr/src/microsoft-rewards-script/config
- ./diagnostics:/usr/src/microsoft-rewards-script/diagnostics
- ./sessions:/usr/src/microsoft-rewards-script/sessions
env_file:
# Load account credentials from the .env file (ACCOUNT_1_EMAIL, optional ACCOUNT_1_PASSWORD, etc.)
- path: .env
environment:
# ── Scheduler ──────────────────────────────────────
TZ: 'America/Toronto'
NODE_ENV: 'production'
# CRON_SCHEDULE is the *initial* default. It will run as default unless changed by the API
# API schedule changes are saved to ./config/schedule.json, delete
# that file to revert to the base CRON_SCHEDULE again.
CRON_SCHEDULE: '0 7 * * *' # use crontab.guru to customize your schedule
RUN_ON_START: 'true' # run script immediately on container start
SKIP_RANDOM_SLEEP: 'false'
#MIN_SLEEP_MINUTES: "5"
#MAX_SLEEP_MINUTES: "50"
#STUCK_PROCESS_TIMEOUT_HOURS: "8"
# ── Control API server ──────────────────────────────────
# API_MODE starts the Control API; it does not select the Rewards task transport.
# Both API_MODE values support CONFIG_REWARDS_MODE=api or browser.
#API_MODE: 'true'
#API_TOKEN: '${API_TOKEN}' # required for API mode, see env.example
# API write/reveal capabilities are separate opt-ins and are off by default.
#API_ALLOW_SCHEDULE_WRITE: 'true'
#API_ALLOW_ENV_OVERRIDES: 'true'
#API_ALLOW_CONFIG_REVEAL: 'true'
#API_ALLOW_CONFIG_WRITE: 'true'
# ── Configuration ──────────────────────────────────────
# Uncomment to override config.json settings; see README.md.
#CONFIG_CLUSTERS: '1'
# Rewards task transport: api (direct) or browser (page navigation and DOM clicks).
#CONFIG_REWARDS_MODE: 'api'
#CONFIG_ACCOUNT_DELAY_MIN: '1min'
#CONFIG_ACCOUNT_DELAY_MAX: '3min'
# Continue even if Microsoft reports Fraud_UserWarning_BotScore_UX (not recommended).
#CONFIG_CONTINUE_ON_BOT_WARNING: 'false'
# Block browser image/video/audio requests to reduce transferred media bytes.
#CONFIG_EXPERIMENTAL_BLOCK_MEDIA: 'false'
# Report the Edge browsing streak in the background (experimental).
#CONFIG_EXPERIMENTAL_EDGE_BROWSING: 'false'
# Only enable for a TLS-intercepting proxy whose certificate cannot be trusted normally.
#CONFIG_PROXY_IGNORE_CERTIFICATE_ERRORS: 'false'
#... add additional configuration overrides as needed
# ── Control API port mapping ──────────────────────────────
# Uncomment when API_MODE=true
#ports:
# - '127.0.0.1:3010:3010'
healthcheck:
test: ['CMD-SHELL', 'scripts/docker/healthcheck.sh']
interval: 60s
timeout: 5s
retries: 3
start_period: 30s
security_opt:
- no-new-privileges:true