Get the IP address of the host machine, you can use the following command in a terminal or command prompt
Set an A record for a domain, you need to access the domain's DNS settings and create an A record that points to the IP address of the host machine. This configuration allows users to reach your domain by resolving the domain name to the specific IP address associated with your host machine.
Create Starknet directory
The first command, mkdir starknet, will create a new directory named starknet in the current location. The second command, cd starknet, will change your current working directory to the newly created starknet directory. Now you are inside the starknet directory and can start storing docker-compose and related files in it.
Create .env file
Paste the following into the file.
ctrl + x and y to save file
Create docker-compose.yml
Paste the following into the docker-compose.yml
ctrl + x and y to save file
In this step, we will create a firehose config yaml in the same directory to be loaded into the docker container.
Paste the following into the file. Edit the --ethereum.url to your own Ethereum RPC.
ctrl + x and y to save file
Run Starknet Firehose
Monitor Logs
Use docker logs to monitor your node. The -f flag ensures you are following the log output
EMAIL={YOUR_EMAIL} #Your email to receive SSL renewal emails
DOMAIN={YOUR_DOMAIN} #Domain of your reth node you set earlier, starknet.infradao.com
WHITELIST={YOUR_REMOTE_MACHINE_IP} # Remote IP's allowed to connect to firehose