diff --git a/.env b/.env index 1069ad6..78da0a0 100644 --- a/.env +++ b/.env @@ -38,7 +38,7 @@ TEST_PROXY_SERVICE_EVM_RPC_HOSTNAME=localhost:7777 TEST_PROXY_SERVICE_EVM_RPC_DATA_URL=http://localhost:7778 TEST_PROXY_BACKEND_EVM_RPC_HOST_URL=http://localhost:8545 TEST_DATABASE_ENDPOINT_URL=localhost:5432 -TEST_PROXY_BACKEND_HOST_URL_MAP=localhost:7777>http://kava-validator:8545,localhost:7778>http://kavapruning:8545 +TEST_PROXY_BACKEND_HOST_URL_MAP=localhost:7777>http://kava-validator:8545,localhost:7778>http://kava-pruning:8545 # What level of logging to use for service objects constructed during # unit tests TEST_SERVICE_LOG_LEVEL=ERROR @@ -56,7 +56,7 @@ LOG_LEVEL=TRACE HTTP_READ_TIMEOUT_SECONDS=30 HTTP_WRITE_TIMEOUT_SECONDS=60 # Address of the origin server to proxy all requests to -PROXY_BACKEND_HOST_URL_MAP=localhost:7777>http://kava-validator:8545,localhost:7778>http://kavapruning:8545 +PROXY_BACKEND_HOST_URL_MAP=localhost:7777>http://kava-validator:8545,localhost:7778>http://kava-pruning:8545 # Configuration for the servcie to connect to it's database DATABASE_NAME=postgres DATABASE_ENDPOINT_URL=postgres:5432 diff --git a/docker-compose.yml b/docker-compose.yml index 19a8983..2625654 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -36,7 +36,7 @@ services: - "${KAVA_CONTAINER_EVM_RPC_PORT}" # peer node with api running validator's network - kavapruning: + kava-pruning: image: kava/kava:${KAVA_CONTAINER_TAG} entrypoint: /docker/shared/kava-entrypoint.sh env_file: .env diff --git a/docker/README.md b/docker/README.md index 39c17bf..51a3ac4 100644 --- a/docker/README.md +++ b/docker/README.md @@ -19,6 +19,10 @@ The following does not affect the network: ## how it works +The setup runs a network of nodes via docker-compose where each node has its own container: +* `kava-validator` - the validator node (see below) +* `kava-pruning` - an API-enabled peer node + There is a network running with a single validator. The config and entrypoint for this node is in [kava-validator](./kava-validator/). The `shared/` directory is shared between all nodes and is used to share necessary details from the validator to the other nodes in the network.