@hyperlane-xyz/core
Version:
Core solidity contracts for Hyperlane
116 lines (77 loc) • 3.54 kB
Markdown
The docker-compose configuration present in this directory allows to quickly run a local development environment.
- [docker-compose](https://docs.docker.com/compose/install/)
You should use the script `compose` located in the `chainlink/tools/docker` directory.
To see a list of available commands, perform the following:
```sh
cd tools/docker
./compose help
```
.env file is used to set the environment variables for the docker-compose commands
The following env vars are used for the compose script :
- `GETH_MODE=true` to use geth instead of parity
- `CHAIN_ID=<number>` to specify the chainID (default is 34055 for parity and 1337 for geth)
- `HTTPURL=<url>` to specify the RPC node HTTP url (default is set if you use geth or parity)
- `WSURL=<url>` to specify the RPC node WS url (default is set if you use geth or parity)
If you specify both `HTTPURL` and `WSURL`, it won't run the devnet RPC node.
for example :
```sh
CHAIN_ID=11155111 WSURL=wss://eth.sepolia HTTPURL=https://eth.sepolia ./compose dev
```
Will run one node with a postgres database and by default a devnet RPC node that can be either geth or parity.
```sh
./compose dev
```
The chainlink node can be reached at `http://localhost:6688`
Credentials for logging into the operator-ui can be found [here](../../tools/secrets/apicredentials)
Runs all services including two nodes with two postgres databases and by default a devnet RPC node that can be either geth or parity.
```sh
./compose up
```
To remove any containers, volumes, and networks related to our docker-compose setup, we can run the `clean` command:
```sh
./compose clean
```
You can use logs command to see the logs of a specific service or all services.
```sh
./compose logs node
```
```sh
./compose logs
```
```sh
./compose connect
```
```
docker system prune
```
The default configuration tries to build everything in parallel. You can avoid this by clearing the Docker Compose build options.
```
export DOCKER_COMPOSE_BUILD_OPTS=""
```
Sometimes docker-compose does not show logging from some docker containers. This can be solved by using the docker command directly.
```
docker ps
docker logs -f chainlink-node
```