Using Docker (Testnet)
Last updated
Last updated
Before starting, ensure that you meet the system requirements for Pharos nodes. Additionally, install the following dependencies:
Create a working directory for your Pharos node:
You need to modify /data/$WORKSPACE
and create the $WORKSPACE
directory in a data disk with large space. For example, if your data disk is mounted in /app, then mkdir /app/$WORKSPACE
Generate a docker-compose.yml
file for managing Pharos nodes
Parameter Explanation
name pharos-testnet
: Container name, customizable.
/data/$WORKSPACE:/data
: Local mount directory, recommended to be set on a high-capacity disk.
public.ecr.aws/k2g7b7g1/pharos/testnet:xxxxxxxx
: Pharos testnet image address.
In your mount directory there should be a list of files:
deploy.light.json
: Pharos binary configuration template
domain.json
: Pharos deployment configuration file
genesis.conf
: The genesis config of the testnet you are connecting to
And the following directories:
pharos-node
: Pharos deployment directory, Contains configuration files, binaries, logs, DB, etc.
pharos-node-client
: Pharos client directory, used to do node management
resources
: Node's keys directory, including consensus signing key and BLS key. Keep it safe
Start the Pharos node and run the following command in the $WORKSPACE directory: