Run services in Docker
On this page you will find steps to run HUMAN Protocol services locally in Docker using testnet.
Last updated
Was this helpful?
On this page you will find steps to run HUMAN Protocol services locally in Docker using testnet.
Last updated
Was this helpful?
Everything you need to spin up services is located in docker-setup
folder, so let’s make it our working directory:
This setup is focused on using testnet instead of running web3 locally, so you can have some persistent data on chain and on subgraph. It also uses different set of docker containers (and volumes) for storing DB-like data, so anything in human-protocol-local-setup
is persistent for you (unless you remove it by pruning your local docker).
.env
filesBefore you build or run any services, you need to prepare env file named .env
(or .env.development
, because NODE_ENV=development
for docker setup) for it and fill it with valid values (see ). Docker Compose will use created env file from the specific service folder as a base and override only necessary values.
In order to make sure that all necessary infra is set up and services can be started, run next command:
The step above:
ensures that no environment variables are missing for Docker Compose setup
ensures that human-cvat-bridge
network (that is needed to have stable communication between HUMAN Protocol and CVAT) is created
spins up necessary infrastructure containers (Postgre, Redis, Minio) with pre-defined setup for all services
Since docker setup is focused on using testn
After the above command is successful, you can either build all services w/o running:
or build and run them
First-time run can take some time to build docker images for all services, don't expect it to be quick.