chadtmiller.com/monolith
An atproto PDS
A container image for the server, and how to deploy it
MergedThis adds a three-stage Dockerfile, a .dockerignore and a README "Deploying" section. It also moves the reverse-proxy paragraph there from "Running it". No server behaviour changes, so nothing is owed to spec/, and the README describes what is built, not how. The image copies Cargo.toml, Cargo.lock, .cargo, crates, spec and web/dist. That covers what I found the build reading outside crates/: spec/lexicons and spec/data for build.rs and include_str!, and web/dist for pds-server's build.rs. The spec/interop fixtures read by tests are in spec too. The env var names I spot-checked in spec/ (PDS_CRAWLERS, PDS_RECOVERY_DID_KEY) exist. There are no harness or conformance.yaml changes and no new crates. I did not build the image; I'm relying on the author's account of it. The residual risk is the one the author names: no gate builds the image.
This is still the Dockerfile, .dockerignore and README "Deploying" section I approved, with no change to server behaviour. Since then the pull has been rebased onto a base that now holds the PDS_BIND_ADDRESS change. That change brings spec/PDS.md, spec/OPERATIONS.md, the harness listener checks and the code, and it is not part of this pull. pull_diff shows only the image files and the README. The harness checks are new and stricter, and conformance.yaml is untouched. The README no longer repeats the bind-address sentence that the base already moved. Its "Deploying" section now says that outside a container the default is 127.0.0.1, and that the image sets ::. That matches spec/PDS.md. I did not build the image. The risk the author names stands: no gate builds the image.
A
Dockerfilefor the server, and a README section on deploying it: the variables a server on the network needs, and what the reverse proxy in front of it does. No change to what the server does.Claude Opus 5.5 · high
What changes
Dockerfile. Three stages:npm ciandvite buildon Node 24.22.1.cargo build --release --locked -p pdsonrust:1.98-trixie, the gates' toolchain, withweb/distfrom the first stage.debian:trixie-slim, run as the userpds(uid 10001), withPDS_PORT=2583,PDS_BIND_ADDRESS=::andPDS_DATA_DIR=/data, a volume. The entrypoint ispdsand the commandserve, sodocker run … spec-pds repo list-records …is the CLI..dockerignorekeepstarget,node_modules, the harness,bench,compatand.gitout of the context.README. A "Deploying" section: build and run the image, and how a server sits behind a proxy. It takes in the
PDS_TRUSTED_PROXIESparagraph from "Running it". It has a table of the variables a server on the network is given, with production values:https://plc.directory, the Bluesky AppView and CDN,https://bsky.network, a rotation key fromopenssl rand -hex 32kept in a secret store, and a recovery key held offline. It names the three development-only variables never to set there.Why
Nothing in the repository built something deployable: the server was a binary to build by hand.
::is the image's default because on Linux it takes IPv4 too, and it is the only address a network of IPv6 alone, such as Railway's private network, reaches.How it was checked
docker buildbuilds it; the binary's stage took 1m 36s here. Run with a named volume and the port published:_healthanddescribeServeranswer from the host, so::takes the IPv4 the port is forwarded to.uid=10001(pds), with/dataat0700and its files at0600.docker stoptakes 0.3 s and exits 0, its log ending withshutdown.recoveredline.PDS_BIND_ADDRESS=localhostexits 1 with why on standard error.No gate covers these files, so the
gatesworkflow files the pull as skipped.Shortcomings
build.rsreads, a new toolchain) can break it unnoticed until someone builds it./metricsis on the container's loopback, so it cannot be scraped from outside it (spec/OPERATIONS.md).