Skip to content

A useful tool for spinning up a provider via Docker with just 1-2 commands.

Notifications You must be signed in to change notification settings

golemfactory/docker-provider

Repository files navigation

Project Setup

Requirements

  • Docker
  • Docker-compose
  • A Linux machine with nested virtualization enabled inside your BIOS

Procedure

  1. Set your wallet address inside the JSON file located at data-node/ya-provider/globals.json
  2. Build the Docker image using docker-compose build.
  3. Start the provider with docker-compose up -d.

Configuration

Switching Between Mainnet and Testnet

By default, the provider starts on the testnet. You can switch to the mainnet by modifying the Dockerfile. Replace --payment-network testnet with --payment-network mainnet in CMD.

Modifying Prices

Update the presets.json file in the data-node/ya-provider directory to adjust prices.

Modifying Node Details

Modify the globals.json file in the data-node/ya-provider directory to update node details like node name, subnet, and wallet address.

Adjusting Hardware Resources

To adjust the hardware resources, update the hardware.json file in the data-node/ya-provider directory.

Scaling Instances

To scale instances, execute docker-compose up -d --scale provider=3.

About

A useful tool for spinning up a provider via Docker with just 1-2 commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published