Open the server Apps tab
Select your VPS, open the Apps tab, and start a new app deployment. Keep sensitive server details hidden before capturing or sharing screenshots.


PostgreSQL database with persistent storage
Add your server credentials to Server Compass
Choose from our template library
Fill in settings and click Deploy
Use the PostgreSQL template in Server Compass to deploy a persistent PostgreSQL database on your VPS, then verify it from the app detail and DB Admin view.
Select your VPS, open the Apps tab, and start a new app deployment. Keep sensitive server details hidden before capturing or sharing screenshots.

Click New App and choose the template deployment path so Server Compass can load the built-in catalog.

Use the template picker search to find PostgreSQL in the Server Compass template catalog.

Choose the PostgreSQL template. Server Compass fills the Docker image, persistent volume, default database name, and generated credentials.

Confirm the app name, host port, database name, username, and generated password. In the pilot run, the app was named postgresql-demo and the host port was changed to 15432 to avoid conflicts.

Review the final settings, click Deploy Now, and let Server Compass create the PostgreSQL container and volume on the VPS.

After deployment finishes, return to the Apps tab and confirm the PostgreSQL app is marked Running with its database connection section available.

Open the PostgreSQL app details and switch to DB Admin. Seeing the DB Admin screen load confirms Server Compass can reach the deployed database service without exposing the generated password.

Server Compass showed one running PostgreSQL container, port 15432 mapped to 5432, and the DB Admin table view loaded for the app database.
It deploys the official PostgreSQL Docker image with persistent storage and generated database credentials.
The pilot used host port 15432 mapped to PostgreSQL port 5432 to avoid conflicts with any existing PostgreSQL service.
No. The deployment guide should live on the PostgreSQL template detail page and be linked from the reusable template deployment docs page.
Deploy PostgreSQL the traditional way with SSH and Docker Compose.
Launch your preferred terminal and connect to your VPS using SSH.
# Log into your server
ssh root@<your-server-ip>
# If using key-based auth
ssh -i ~/.ssh/my-key root@<your-server-ip>First time? Docker not installed? Run: curl -fsSL https://get.docker.com | sh
Prepare a directory for your application files and configuration.
# Create and navigate to project directory
mkdir -p ~/apps/postgresql
cd ~/apps/postgresqlCreate the Docker Compose configuration file with these contents:
services:
postgres:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=<your-postgres-password>
- POSTGRES_DB=app
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d app"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data:
PORTHost port to expose(default: 5432)POSTGRES_USERDatabase username(default: postgres)POSTGRES_PASSWORDDatabase passwordPOSTGRES_DBDatabase name(default: app)Launch the application stack using Docker Compose.
# Deploy the application
docker compose up -d
# Check container health
docker compose ps
# Monitor logs
docker compose logs -f --tail=100Enable external access by opening the necessary port.
# Allow the application port through firewall
sudo ufw allow 5432/tcp
sudo ufw reload
# Access your app at:
# http://your-server-ip:5432Server Compass makes deploying PostgreSQL effortless. Visual setup, one-click deploy, done.
After deploying PostgreSQL with Server Compass, complete these steps to finish setup
Test the database connection
Create additional users if needed
Configure backup schedules
Set up monitoring and alerts
Review and optimize PostgreSQL configuration for your workload
Consider setting up replication for high availability
Need help? Check out our documentation for detailed guides.
Common questions about self-hosting PostgreSQL
Simply download Server Compass, connect to your VPS, and select PostgreSQL from the templates list. Fill in the required configuration and click Deploy. The entire process takes under 3 minutes.
PostgreSQL requires a minimum of 256MB RAM. We recommend a VPS with at least 1024MB RAM for optimal performance. Any modern Linux server with Docker support will work.
Yes! Server Compass provides volume mapping that allows you to import existing data. You can also use standard PostgreSQL backup and restore procedures.
Server Compass makes updates easy. Simply click the Update button in your deployment dashboard, and the latest PostgreSQL image will be pulled and deployed with zero downtime.
PostgreSQL is open-source software. You only pay for your VPS hosting (typically $5-20/month) and optionally Server Compass ($29 one-time). No subscription fees or per-seat pricing.
Download Server Compass and deploy PostgreSQL to your VPS in under 3 minutes. No Docker expertise required.
Download Server Compass