Deploy Postgres

Cycleops is built with containers as a first-class citizen, which are a great way to deploy data stores like Postgres. With Cycleops, you will be able to deploy Postgres, as a container on your infrastructure in just a few steps:

  1. Follow the steps in "Deploy your first container"
  2. Edit the configuration of the service you created in the guide with:
    • Image: postgres
    • Tag: 16
    • Ports: 5432:5432
    • Env vars: POSTGRES_PASSWORD=change_this_password
    • Volumes: postgres_data:/var/lib/postgresql/data
  3. Deploy the setup you created to run the Postgres container on your host
  4. Now, you can verify that your Postgres container is running and operating successfully Please run the following command in your server:
    sudo docker exec -it postgres psql --host localhost --username postgres --list

Video tutorial