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:
- Follow the steps in "Deploy your first container"
- 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
- Image:
- Deploy the setup you created to run the Postgres container on your host
- 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