How to run a data feeder
Last updated
Last updated
This guide provides instructions for deploying the node using Docker Compose. This setup allows you to run the node on your local machine or any infrastructure that supports Docker Compose. Access the repo in the following link:
Ensure Docker OR Docker Compose are installed on your machine.
Locate the docker-compose
folder in this repository.
Inside, you will find a file named docker-compose.yaml
.
Create a .env
file in the same directory as docker-compose.yaml
. This file should contain the following variables:
PRIVATE_KEY
: Your private key for the deployment.
DEPLOYED_CONTRACT
: The contract address. Initially, leave this empty during the first deployment to retrieve the deployed contract.
Example .env
file:
Deploy the feeder with DEPLOYED_CONTRACT
empty.
Upon the first deployment, the logs will display the deployed contract address in the following format:
Copy the displayed contract address (e.g., 0x708e54f09a8b0xxxxxxxxxxxxxxxx
) and paste it into your .env
file as the value for DEPLOYED_CONTRACT
.
Update your .env
file:
Open a terminal in the docker-compose
folder and start the deployment by running:
Check if the container is running correctly by viewing the logs. Run the following command:
Expected Logs: Look for logs similar to the example below, which indicate a successful startup:
You can also deploy with Docker run deployment or Kubernetes deployment. Find out more about these deployment types in the github links below: