ffmpeg parses untrusted uploads, so it moves out of the server image
into a container of its own (ADR-15):
- Media/: docwell-media, a small Go wrapper around ffmpeg.
POST /v1/split takes a recording and returns the 16 kHz mono MP3
pieces as multipart/mixed. ffmpeg may only open local files and
common audio/video demuxers (no playlists); optional shared token,
a job limit, a timeout and a 1 GB cap.
- Server: DOCWELL_MEDIA_URL and DOCWELL_MEDIA_TOKEN send recordings
over 25 MB to the service. When it is blank or unreachable, the
server uses a local ffmpeg if it has one, else cuts MP3 and WAV in
Go. The server image no longer installs ffmpeg; the all-in-one
image keeps it to stay one container.
- Compose: a media service in every stack, read-only, no
capabilities, on an internal network only docwell-server joins.
- CI tests the new module and checks that only the server reaches
media; the release workflow publishes docwell-media.
- Docs, ADR-15 and the .env examples.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docwell-db no longer needs a Docwell image: the stack runs
tajniak81/pocketbase-docker-root as it is, and docwell-server does what
the migrations and pb_hooks used to do inside PocketBase.
On start, docwell-server now:
- waits for PocketBase and imports Docwell's collections from an
embedded snapshot (internal/pbschema). Existing collections and
fields are matched by name, so their data is kept; the admin-managed
users options (OAuth2 providers, magic link) are left untouched.
- writes the DOCWELL_APP_NAME, DOCWELL_WEB_URL, DOCWELL_MAIL_FROM,
DOCWELL_SMTP_* and DOCWELL_S3_* settings into PocketBase, as the
boot hook did.
It also replaces the hook's two routes: token checks use PocketBase's
auth-refresh (the organization name is read as the superuser), and
Docwell's own emails go out over SMTP from the server. PocketBase never
returns the SMTP password, so the server keeps a copy in the
superuser-only instance_settings collection; a password saved before
this change has to be entered once more in the admin panel.
Database/ keeps pb_migrations as the source of the schema;
export-schema.sh regenerates the snapshot from them. Database/Dockerfile
and pb_hooks are removed, the release no longer builds docwell-db, the
AIO image runs PocketBase without migrations or hooks, and the compose
files default DB_IMAGE to the stock image and pass the settings to the
server instead of the database.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Docker/ and Docker-AIO/ each get docker-compose.prod.yml plus S3,
SeaweedFS and SeaweedFS-split variants, with matching .env.prod*.example
templates and a README.
docwell-db is now built FROM tajniak81/pocketbase-docker-root, which
creates the superuser and serves PocketBase on 8090; data moves to
/pb/pb_data. The boot hook applies DOCWELL_S3_* settings when set.
The AIO start script accepts PB_ENCRYPTION_KEY. The base image is
amd64-only, so the docwell-db release builds amd64 only for now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>