🐳 Full Docker Deployment


🧰 Prerequisites

Ensure the following are installed:

sudo apt install docker.io docker-compose git -y

πŸ“ Folder Structure

Typical miner directory looks like:

miner/
β”œβ”€β”€ .env
β”œβ”€β”€ compose.yaml
β”œβ”€β”€ config/
β”‚   β”œβ”€β”€ __init__.py
β”‚   └── config.json
β”œβ”€β”€ logs/
β”œβ”€β”€ miner/
β”‚   β”œβ”€β”€ __init__.py
β”‚   └── miner.py
β”œβ”€β”€ requirements.txt
└── setup.py

πŸ”Ή 1. Setup Environment

This step provides all environment variables used in the Bittensor Subnet Taoillium project.

Environment variables are configured through aΒ .envΒ file in the project root directory. The configuration is managed byΒ services/config.pyΒ using Pydantic Settings. You can access github link below to read comprehensive documentation.

https://github.com/taoillium/bittensor-subnet-taoillium/blob/main/docs/environment_variables.md

πŸ”§Β Example .env File

# Copy from example if available, or create manually
# cp env.example .env

# Authentication & API Configuration
SRV_API_KEY=your_taoillium_api_key_here
SRV_API_URL=https://api.taoillium.ai

# JWT Authentication
NEURON_JWT_SECRET_KEY=your_jwt_secret_key_here
NEURON_JWT_EXPIRE_IN=30

# Network Configuration
CHAIN_NETWORK=local
CHAIN_NETUID=2

# Wallet Configuration
WALLET_NAME=Miner
HOTKEY_NAME=default

# Service ports (will be auto-configured if not present)
MINER_PORT=8091

πŸ”Ή 2. Deploy Services

# Deploy miner service
./docker/deploy.sh miner

# Or with force rebuild
./docker/deploy.sh miner force-build