Egg Repository

Pterodactyl Community Egg Repository

Postgres 14

A default Postgres install that is not really editable.

Read Me

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
Yolks
NameTag
ghcr.io/ptero-eggs/yolks:postgres_14ghcr.io/ptero-eggs/yolks:postgres_14
Variables
NameDescriptionEnvironment VariableDefault ValueUser ViewableUser Editable
Superuser NameThe username for the postgres superuserPGUSERpterodactylYesNo
Superuser PasswordThe 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'sPGPASSWORDPl3453Ch4n63M3!YesNo
Install Script
#! /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"