appply namespacev17.10.9

postgres

PostgreSQL relational database (docker-library env contract)

← All packages

Use this package

copy / configure

Run the app directly or compose it with other apps in your manifest.

terminal
ply run postgres@17.10 -e POSTGRES_PASSWORD=…

Replace … with your secret value before running.

ply.toml / app member
[[service]]
run = "postgres@17.10"
name = "postgres"
params = { database = "postgres" }
# overridable: database, user
# references: {postgres.database}, {postgres.password}, {postgres.url}, {postgres.user}, {postgres.host}, {postgres.port}, {postgres.addr}, {postgres.base_url}
ply.toml / dependencies
[dependencies]
postgres = "17.10"

Parameters

4 declared

Reference as {postgres.<name>} from a stack. Override with params = { <name> = "…" }.

namekinddefault / expression
databasedefaultpostgres
passwordsecret (minted)—
urlcomputedpostgres://{user}:{password}@{host}:{port}/{database}
userdefaultpostgres

Secrets are minted per stack unless declared external. Secret values are not shown.

Dependencies

2 packages

Declared package requirements. Composed together, not inherited.

rclone1.60
postgresql1717

The manifest

as published
Read ply.toml
[package]
name = "postgres"
version = "17.10.9"
entrypoint = ["./run.sh"]
include = [
    "run.sh",
    "backup.sh",
    "restore.sh",
    "cacert.pem",
]
user = "postgres:70:70"
stop_signal = "SIGINT"
owner = "ply"
description = "PostgreSQL relational database (docker-library env contract)"
license = "PostgreSQL"
homepage = "https://www.postgresql.org"
base = "debian@13"

[dependencies]
postgresql17 = "17"
rclone = "1.60"

[env]
PGHOST = "/tmp"
POSTGRES_DB = "{database}"
POSTGRES_PASSWORD = "{password}"
POSTGRES_USER = "{user}"

[params]
database = "postgres"
url = "postgres://{user}:{password}@{host}:{port}/{database}"
user = "postgres"

[params.password]
secret = true

[ports]
db = 5432

[volumes.data]
path = "/var/lib/postgresql/data"
scope = "instance"
ephemeral = false

[restart]
policy = "on-failure"
backoff = "2s"
max_backoff = "30s"

[health]
port = 5432
grace = "30s"

[network]
egress = []

[sources]
default = "https://registry.plybox.sh/ply/{package}"

Published builds

8 records

Download a package file for your architecture.

versiondownloadsizepublished
17.10.9latestx64 108 KiB2026-09-08
17.10.9latestarm64 108 KiB2026-09-08
17.10.8x64 108 KiB2026-09-08
17.10.8arm64 108 KiB2026-09-08
17.10.7arm64 108 KiB2026-09-02
17.10.7x64 108 KiB2026-09-02
17.10.6arm64 108 KiB2026-08-30
17.10.6x64 108 KiB2026-08-30