PostgreSQL Server
This free NautilusControl template sets up a PostgreSQL server on port 5432 with 1 GB of RAM recommended. This page covers the ports to open, hardware requirements, the Docker image, every setting you can change and step-by-step setup.
PostgreSQL at a glance
- Category
- Database (database)
- Docker image
- postgres:16-alpine
- Default version
- 16
- Ports
- 5432/TCP
- RAM
- 1 GB
- CPU
- 1 core
- Disk
- 20 GB
- Console
- Interactive console (stdin)
- Template version
- v1.0.0
PostgreSQL server ports
A PostgreSQL server built from this template listens on this port. Open it in your firewall so players and clients can connect.
| Port | Protocol | Used for |
|---|---|---|
| 5432 | TCP | PostgreSQL |
sudo ufw allow 5432/tcpPostgreSQL server requirements
These are the template's recommended starting values. Increase it as your data and number of connections grow.
Run PostgreSQL in Docker
The template uses the postgres:16-alpine image, default version 16. NautilusControl pulls it automatically; to fetch it yourself:
docker pull postgres:16-alpinedocker-entrypoint.sh postgresPostgreSQL settings (environment variables)
You can change these when you create the server or later in its settings.
| Variable | Default | What it does |
|---|---|---|
| POSTGRES_USER | postgres | Superuser username |
| POSTGRES_PASSWORDrequired | empty | Superuser password — required |
| POSTGRES_DB | postgres | Default database name |
Files and folders
/var/lib/postgresql/data— Data
How to set up a PostgreSQL server with NautilusControl
Install NautilusControl
Install the NautilusControl panel and agent on the machine that will run the server. The installation guide covers it, and the 14-day free trial includes 1 node and 5 servers.
Import the PostgreSQL template
Download this template (a single JSON file) with the button above, then open Templates in NautilusControl and choose Import JSON.
Create the server
Create a new container and pick PostgreSQL. NautilusControl pulls
postgres:16-alpine, fills in the environment variables listed below, and creates the folders for you.Open the ports
Allow port 5432 through your firewall, and forward it on your router if people connect from outside your network.
Start it
Press Start and follow the startup log in the panel, then use the interactive console (stdin) for commands.
Server files come from www.postgresql.org.
Notes
Advanced open-source relational database. Used by GitLab, Mastodon, and many modern apps. Connect with postgresql://user:pass@host:5432/dbname
PostgreSQL FAQ
What ports does a PostgreSQL server use?
This template uses port 5432 (PostgreSQL). Open it in your firewall and forward it on your router if players connect from outside your network.
How much RAM does a PostgreSQL server need?
The template recommends 1 GB of RAM, 1 core, 20 GB of disk space. Increase it as your data and number of connections grow.
Can I run PostgreSQL in Docker?
Yes. The template uses the Docker image postgres:16-alpine (default version 16). NautilusControl pulls it and creates the container for you.
Is the PostgreSQL template free?
Yes. Every template in the Corallium Studios library is free to download. You need NautilusControl to deploy it; there is a 14-day free trial.