Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .daemonless/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ build:
BASE_VERSION: "15-latest"
aliases: ["18", "latest", "pkg", "pkg-latest"]
default: true
# 19 is intentionally absent: postgresql19-server (19.b3) installs fine,
# but the pgvector 0.8.2 port fails to compile against it -- PG19 moved the
# core internals it relies on (LWLock, slock_t, ConditionVariable, Page,
# AddinShmemInitLock) out of postgres.h's transitive includes. Re-add once
# pgvector supports PG19 and 19.0 ships.
- tag: "19-pkg-latest"
pkg_name: postgresql19-server
containerfile: Containerfile.pkg
args:
PG_VERSION: "19"
BASE_VERSION: "15-latest"
aliases: ["19"]
39 changes: 24 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,27 @@ The World's Most Advanced Open Source Relational Database on FreeBSD.
| **Source** | [https://www.postgresql.org/](https://www.postgresql.org/) |
| **Website** | [https://www.postgresql.org/](https://www.postgresql.org/) |

## Version Tags
| Tag | Description | Best For |
| :--- | :--- | :--- |
| `14` / `14-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. |
| `15` / `15-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. |
| `16` / `16-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. |
| `17` / `17-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. |
| `18` / `18-pkg-latest` / `latest` / `pkg` / `pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. |
## Init scripts

On first start (empty data directory), files in `/docker-entrypoint-initdb.d/`
run in name order: `*.sh` (run if executable, else sourced), `*.sql` and
`*.sql.gz`. They run as `bsd`, not as root, and connect as
`POSTGRES_USER`, the superuser that owns the databases.

## Prerequisites

Before deploying, ensure your host environment is ready. See the [Quick Start Guide](https://daemonless.io/guides/quick-start) for host setup instructions.

## Deployment

### Fjord

Install and manage **PostgreSQL** on FreeBSD with [fjord](https://fjord.daemonless.io):

```bash
fjord install postgres
```

### Podman Compose

```yaml
Expand Down Expand Up @@ -191,13 +198,15 @@ Save as `bastille-compose.yml`, then run `bastille up`.
|------|----------|-------------|
| `5432` | TCP | PostgreSQL port |

## Init scripts

On first start (empty data directory), files in `/docker-entrypoint-initdb.d/`
run in name order: `*.sh` (run if executable, else sourced), `*.sql` and
`*.sql.gz`. They run as `bsd`, not as root, and connect as
`POSTGRES_USER`, the superuser that owns the databases.

## Version Tags
| Tag | Description | Best For |
| :--- | :--- | :--- |
| `14` / `14-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. |
| `15` / `15-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. |
| `16` / `16-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. |
| `17` / `17-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. |
| `18` / `18-pkg-latest` / `latest` / `pkg` / `pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. |
| `19` / `19-pkg-latest` | **FreeBSD Latest**. Rolling package updates. | Staying current. |

**Architectures:** amd64, aarch64
**User:** `bsd` (UID/GID via PUID/PGID, defaults to 1000:1000)
Expand Down