Deploy docs: podman builds need --format docker for the healthcheck

a7fc868 · gmorell · 2026-12-02 04:03

2 files +5 -2

Files changed

modified docs/deploy.md
+5 −2
@@ -3,12 +3,15 @@
3 3 Vigil ships as one OCI image (`Dockerfile`): a Debian runner with the
4 4 release under `/app`, running as `nobody` under `tini`, started by
5 5 `bin/server`. CI builds and pushes it on every push to `main`
6 −(`.forgejo/workflows/image.yml`). It needs Postgres (17; no extensions) and
6 +(`.forgejo/workflows/image.yml`). It needs Postgres (17; `pg_trgm`, which the migrations create) and
7 7 nothing else. The three Rust NIFs are built from source into the release,
8 8 and the runner image carries no extra system libraries for them.
9 9
10 +Docker or Podman both work. With Podman, build with `--format docker`, or
11 +the image's `HEALTHCHECK` is dropped (OCI images have none):
12 +
10 13 ```sh
11 −docker build -t vigil .
14 +podman build --format docker -t vigil . # or: docker build -t vigil .
12 15 docker run --rm -e DATABASE_URL=... -e SECRET_KEY_BASE=... vigil /app/bin/migrate
13 16 docker run -p 4000:4000 -v vigil-storage:/data/storage \
14 17 -e DATABASE_URL=... -e SECRET_KEY_BASE=... -e PHX_HOST=vigil.example.com vigil

Parents: f01f750