Overview
This template provides a PostgreSQL runnable exposing port 5432 with a persistent data volume. Use it directly for quick starts, or inherit it in your app and wire credentials via Monk secrets.Quick start (run directly)
localhost:5432 with the default credentials from postgres.yml.
Configuration
Key variables inpostgres.yml (under postgresql/db):
Inherit and use secrets (recommended)
Ports and persistence
- Service:
postgreson TCP5432 - Data path:
${monk-volume-path}/postgresql:/var/lib/postgresql/data
Troubleshooting
- If you change credentials but reuse an existing data volume, authentication may fail; reset the volume or update the credentials inside the DB.
- Ensure the host volume is writable by the container.