appply namespacev17.10.9
postgres
PostgreSQL relational database (docker-library env contract)
Use this package
copy / configureRun 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 declaredReference as {postgres.<name>} from a stack. Override with params = { <name> = "…" }.
| name | kind | default / expression |
|---|---|---|
| database | default | postgres |
| password | secret (minted) | — |
| url | computed | postgres://{user}:{password}@{host}:{port}/{database} |
| user | default | postgres |
Secrets are minted per stack unless declared external. Secret values are not shown.
Dependencies
2 packagesDeclared package requirements. Composed together, not inherited.
rclone1.60postgresql1717The manifest
as publishedRead 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 recordsDownload a package file for your architecture.