-
Server Requirement
- Operating System: Linux (linux/amd64, linux/arm64)
- Min Requirement: 1 vCPU, 1GB RAM / 20GB Disk, Static IP
- Suggested Requirement: 2 vCPU, 4GB RAM / 50GB SSD, Static IP
-
Docker installation: https://docs.docker.com/engine/install/ubuntu/
- Getting API Key from API Provider
- Prepare a .env file and copy paste it from .env.sample and edit to your own need
# Use your fav text editor, vim/nano
nano .env
- Pull the docker images from https://hub.docker.com/r/chasmtech/chasm-scout
docker pull chasmtech/chasm-scout:latest
- Run the file
docker run -d --restart=always --env-file ./.env -p 3001:3001 --name scout chasmtech/chasm-scout
Download the codebase
# Download Via SSH
git clone [email protected]:ChasmNetwork/chasm-scout.git
# Download Via HTTPS
git clone https://github.com/ChasmNetwork/chasm-scout.git
Navigate to the project directory
cd chasm-scout
- Follow the steps provided by Chasm Network to obtain your API key and UID.
To the run command below replacing the path to your .env
file
# Copy dot env
cp .env.sample .env
Update the .env
file
Scouts need to establish an internet connection with the orchestrator. This requires ensuring that the
PORT
specified in .env is reachable on the Docker Container via the internet. This involves either opening the port on the firewall or configuring port forwarding.
# Build Docker Image
docker build --tag 'chasm_scout' .
# Run docker
# Can consider adding --restart=always flag to always restart for production
# Note: Remember to change the port
docker run --env-file ./.env -p 3001:3001 --name scout chasm_scout
Alternative: Docker Compose
PORT=3001 docker compose up -d
Access the running application at http://:3001 to verify the setup.
Check the Docker container logs for any issues:
docker logs scout
Make sure your node.js version are >21 and have bun installed
bun i
bun run build
bun run dist/server/express.js
- Environment Variables: Double-check that all required environment variables are set correctly in the
.env
file.
- Optimization Guide: Follow the optimization guide for performance improvements.
- Update Guide: Follow the update guide for updating your scout.