Skip to main content

Running pryzm feeder with Docker

To simplify the deployment and orchestration of the 'pryzm-feeder blockchain network, Docker can be used. This guide outlines the steps required to run 'pryzm-feeder using Docker and Docker Compose.

Prerequisites

Before proceeding with running 'pryzm-feeder` with Docker Compose, ensure that the following prerequisites are met:

Pryzm-feeder Image

Before running the container you need to have the docker image in place. you can build your own docker image by following the guideline at building pryzm-feeder docker or download the official docker image from the following repo.

docker pull europe-docker.pkg.dev/pryzm-zone/core/pryzm-feeder:0.4.1

Timescaledb Image

Before running the container you need to have the timescaledb docker image in place. you can build your own docker image or download the docker image from the official docker repository.

docker pull timescale/timescaledb:2.13.0-pg16

Docker

To run pryzm-feeder with Docker, you need to provide a valid configuration path. the configuration file path will contain essential config files for running pryzm. the following is a sample docker run command:

this example is persisting the config file but not the data use this example only for tests

docker run --name=pryzm-feeder --network-mode=host --restart=always -v ./config.yml:/app/config.myl eu.gcr.io/pryzm-finance/pryzm-feeder:v0.4.1

this example persists all the logs and config on the host

docker run --name=pryzm-feeder --network-mode=host --restart=always -v ./config.yml:/app/config.myl -v ./logs:/app/logs
eu.gcr.io/pryzm-finance/pryzm-feeder:v0.4.1

Docker Compose

To run pryzm-feeder with Docker Compose, you need to provide a valid docker-compose.yml configuration file. The docker-compose.yml file contains the necessary configurations for running the pryzm-feeder container and any associated services.

Running pryzm-feeder with Docker Compose

Once you have the appropriate docker-compose.yml configuration file ready, follow these steps to run pryzm-feeder with Docker Compose:

  1. Open a terminal and navigate to the directory containing the docker-compose.yml file.

  2. Run the following command to start the 'pryzm-feeder` container:

    $ docker-compose up -d

    The -d flag runs the containers in detached mode, allowing them to continue running in the background.

  3. Docker Compose will start the pryzm-feeder container and any associated services specified in the docker-compose.yml file.

  4. Verify that the 'pryzm-feeder` container is running successfully by checking its status:

    $ docker-compose ps

    This command will display the status of the 'pryzm-feeder` container and any associated services.

Stopping 'pryzm-feeder`

To stop the 'pryzm-feeder` container and associated services, use the following command:

$ docker-compose down

This command will gracefully stop the containers and remove the associated resources.

Conclusion

By following this guide, you should be able to run 'pryzm-feeder` using Docker Compose, simplifying the deployment and orchestration of the blockchain network.