Postgres 16

applications
Report Issue

A default Postgres install that is not really editable.

Contributors:
README

PostgreSQL

From their Website

The World's Most Advanced Open Source Relational Database

Minimum RAM warning

2 Gigabytes minimum recommended

See here https://www.commandprompt.com/blog/postgresql_mininum_requirements/

Server Ports

Ports required to run the server in a table format.

Port default
Server 5432
Docker Images (1)
Name Image
ghcr.io/ptero-eggs/yolks:postgres_16 ghcr.io/ptero-eggs/yolks:postgres_16
Startup Command
postgres  -D /home/container/postgres_db/ & wait-port;  psql -h127.0.0.1 -p{{SERVER_PORT}} --dbname postgres
Variables (2)

Superuser Name

The username for the postgres superuser

Environment:
PGUSER
Default:
pterodactyl
User Viewable:
User Editable:
Rules:
required|string|max:20

Superuser Password

The postgres super user password with a strong default. You should be generating new ones for each server. If you don't then users can hit other users DB's

Environment:
PGPASSWORD
Default:
Pl3453Ch4n63M3!
User Viewable:
User Editable:
Rules:
required|string|max:20
Installation Script
Container: postgres:16-alpine
Entrypoint: bash
#! /bin/ash
adduser -D -h /home/container container

chown -R container: /mnt/server/

su container -c 'initdb -D /mnt/server/postgres_db/ -A md5 -U "$PGUSER" --pwfile=<(echo "$PGPASSWORD")'

mkdir -p /mnt/server/postgres_db/run/

## Add default "allow from all" auth rule to pg_hba
if ! grep -q "# Custom rules" "/mnt/server/postgres_db/pg_hba.conf"; then
    echo -e "# Custom rules\nhost    all             all             0.0.0.0/0               md5" >> "/mnt/server/postgres_db/pg_hba.conf"
fi

echo -e "Done"