02-docker-local.toml

application/octet-stream

Filename: 02-docker-local.toml
Type: application/octet-stream
Part: 0
Message: Re: Proposal: new file format for hba/ident/hosts configuration?
# =============================================================================
# Mockup 2: a container image for local / testing / development use.
#
# The image ships a working postgresql.toml. At run time the user may mount an
# extra file; the base config pulls it in with an optional include, so the
# container starts fine whether or not that file exists.


# FILE: /etc/postgresql/postgresql.toml   (baked into the image)
# =============================================================================
listen_addresses = "*"
fsync = false

[include]
optional = ["/etc/postgresql/conf.d/custom.toml"]

[hba]

[hba._defaults]
transport = "tcp"
method = "scram-sha-256"

[[hba.rules]]
transport = "local"
databases = "all"
users = "all"
method = "trust"

[[hba.rules]]
address = "0.0.0.0/0"
databases = "all"
users = "all"


# FILE:  /etc/postgresql/conf.d/custom.toml   (mounted by the developer)
# =============================================================================
shared_buffers = "512MB"
log_statement = "all"
log_min_duration_statement = 0