sudo apt update -y && apt install screen nano curl unzip git -y
cat << 'EOF' > docker-install.sh
#!/bin/bash
# Update and install necessary dependencies
apt-get update && apt-get upgrade -y
apt-get install -y curl wget git nano jq
# Install Docker
echo "Installing Docker..."
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
docker version
# Install Docker-Compose
echo "Installing Docker Compose..."
VER=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep tag_name | cut -d '"' -f 4)
curl -L "https://github.com/docker/compose/releases/download/$VER/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose --version
# Add user to Docker group
echo "Adding current user to the Docker group..."
sudo groupadd docker
sudo usermod -aG docker $USER
EOF
chmod +x docker-install.sh && ./docker-install.sh
4. Install & Setup SixGPT
mkdir sixgpt && cd sixgpt
export VANA_NETWORK=moksha
export VANA_PRIVATE_KEY=your_private_key
services:
ollama:
image: ollama/ollama:0.3.12
ports:
- "11435:11434"
volumes:
- ollama:/root/.ollama
restart: unless-stopped
sixgpt3:
image: sixgpt/miner:latest
ports:
- "3015:3000"
depends_on:
- ollama
environment:
- VANA_PRIVATE_KEY=${VANA_PRIVATE_KEY}
- VANA_NETWORK=${VANA_NETWORK}
restart: always
volumes:
ollama:
docker compose up -d && docker compose logs -f