/gridcoin-headless-docker

Non-official headless Gridcoin wallet in Docker

Primary LanguageShellMIT LicenseMIT

Gridcoin Headless Wallet in Docker

Build and publish the image Docker Pulls

A non-official headless GridCoin wallet in Docker.

Usage

Docker command

# Remove the comments between lines when executing
docker run \
    --name gridcoin \
    --restart=unless-stopped \
    -d \
    -v /path/to/data/dir:/root/.GridcoinResearch \
    -v /path/to/boinc/data/dir:/var/lib/boinc \
    # Optional. You can pass your wallet into the container if you want
    -v /path/to/your/wallet/wallet.dat:/root/.GridcoinResearch/wallet.dat \
    # Use your timezone instead
    -e TZ=Asia/Shanghai \
    # Optional. Required when you are solo mining
    -e EMAIL=your@email.com \
    # Optional. Required when your wallet is encrypted
    -e PASSPHRASE=your_wallet_passphrase
    # Optional. Specify a SOCKS5 proxy
    -e SOCKS_PROXY=192.168.1.200:7890 \
    # Optional. Only when you want to specify the RPC username
    -e RPC_USER=your_rpc_username \
    # Optional. Only when you want to specify the RPC password.
    # A random string will be used as password by default.
    -e RPC_PASSWORD=your_rpc_password \
    boris1993/gridcoin-headless-docker:latest

Docker Compose

version: '3'

services:
  gridcoin:
    image: boris1993/gridcoin-headless-docker:latest
    container_name: gridcoin
    restart: unless-stopped
    environment:
      # Use your timezone instead
      - TZ=Asia/Shanghai
      # Optional. Required when you are solo mining
      - EMAIL=your@email.com
      # Optional. Required when your wallet is encrypted
      - PASSPHRASE=your_wallet_passphrase
      # Optional. Specify a SOCKS5 proxy
      - SOCKS_PROXY=192.168.1.200:7890
      # Optional. Only when you want to specify the RPC username
      - RPC_USER=your_rpc_username
      # Optional. Only when you want to specify the RPC password.
      # A random string will be used as password by default.
      - RPC_PASSWORD=your_rpc_password
    volumes:
      - /path/to/data/dir:/root/.GridcoinResearch
      # Optional. You can pass your wallet into the container if you want
      - /path/to/your/wallet/wallet.dat:/root/.GridcoinResearch/wallet.dat
      - /path/to/boinc/data/dir:/var/lib/boinc

Donation

Love this project? Please consider donating to my address S4vA3tjgkoBMEWu8EJESmQZbnKtqNPTYFX.