Skip to content

docker image for Microsoft-Rewards-Farmer by charlesbel

Notifications You must be signed in to change notification settings

haq/microsoft-rewards-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

June 24, 2023 - Ever since the takedown of the original GitHub repository, this image has been migrated over to use the GitLab one. But it seems to me that the GitLab one is not as updated and has multiple open issues.

August 18, 2023 - Migrated image over to utilize charlesbel/Microsoft-Rewards-Farmer since farshadzargary1997/Microsoft-Rewards-bot has been abandoned.

June 15, 2024 - Migrated image over to utilize klept0/Microsoft-Rewards-Farmer since charlesbel/Microsoft-Rewards-Farmer has been abandoned.

create and publish docker image Docker image size GitHub code size in bytes

microsoft-rewards-bot

klept0/Microsoft-Rewards-Farmer but dockerized.

docker-cli

docker run --rm -it \
  --shm-size 4g \
  -v "$PWD"/accounts.json:/app/accounts.json \
  ghcr.io/haq/microsoft-rewards-bot

recommended usage

compose.yml

services:

  rewards-home:
    image: ghcr.io/haq/microsoft-rewards-bot
    container_name: rewards_home
    shm_size: 4gb
    volumes:
     - ./accounts.json:/app/accounts.json
    restart: no

  rewards-vpn:
    image: ghcr.io/haq/microsoft-rewards-bot
    container_name: rewards_vpn
    network_mode: service:wireguard
    shm_size: 4gb
    depends_on:
      - wireguard
    volumes:
     - ./accounts.json:/app/accounts.json
    restart: no

  wireguard:
    image: lscr.io/linuxserver/wireguard
    container_name: wireguard
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1
      - net.ipv4.ip_forward=1
    volumes:
      - ./wg0.conf:/config/wg0.conf
    healthcheck:
      test: [ "CMD", "ping", "-c", "1", "google.com" ]
      retries: 3
      timeout: 5s
    restart: unless-stopped

accounts.json

[
   {
      "username":"account-1@mail.com",
      "password":"password-1"
   },
   {
      "username":"account-2@mail.com",
      "password":"password-2",
      "proxy":"http://user:pass@host2:port"
   },
   {
      "username":"account-3@mail.com",
      "password":"password-3"
   }
]

wg0.conf

[Interface]
PrivateKey =
Address =
DNS =

[Peer]
PublicKey =
PresharedKey =
AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 25
Endpoint =

crontab

  • It is recommended that you randomize the time each script is run.
  • Also take note of how long the script takes to run. There should be no overlap.
0 4 * * * docker start rewards_home
0 5 * * * docker start rewards_vpn

About

docker image for Microsoft-Rewards-Farmer by charlesbel

Topics

Resources

Stars

Watchers

Forks

Packages