Self-hosting with Docker
One command starts the whole of Chelsea on a machine with Docker and Compose v2: the web app, the background worker, Postgres (with pgvector), Valkey and an S3-compatible file server (RustFS). It needs about 1 GB of free memory and no other tools.
Start it
Section titled “Start it”From a copy of the Chelsea repository:
./scripts/selfhost-init.sh # creates .env with generated secretsdocker compose --profile app up -d # builds the image and starts everythingOpen http://localhost:8080. The first visit shows a setup page where you name your organization and create the owner account. The page disappears as soon as that account exists, so do it right after the first start. Setup also creates the default roles and catalogs.
What starts, and in which order
Section titled “What starts, and in which order”- Postgres, Valkey and the file server start first.
migratechecks the required settings, applies the database migrations, syncs permissions and creates the storage bucket, then exits.- Only then do
webandworkerstart.
The web app (port 8080) and the file server (port 9000) are published on the host. Postgres and Valkey listen only on the machine itself.
Without --profile app, Compose starts only Postgres, Valkey and the file server, which is what development uses. Every command that touches migrate, web or worker needs --profile app.
Put it on a server
Section titled “Put it on a server”Session cookies are HTTPS-only, so anywhere other than localhost Chelsea needs HTTPS in front of it.
- Run a reverse proxy (Caddy, Traefik or nginx) that serves two host names over HTTPS: one to
web:8080, one tos3:9000. - In
.env, setAPP_URL=https://chelsea.example.comandS3_PUBLIC_URL=https://files.example.com. - Run
docker compose --profile app up -dagain.
Browsers download files straight from the file server through short-lived signed links, so S3_PUBLIC_URL must be an address your users’ browsers can reach. Signing in over plain http:// works only on localhost.
Use another S3 server
Section titled “Use another S3 server”To use AWS S3, Garage, SeaweedFS or any other S3-compatible server, remove the s3 service (and migrate’s dependency on it) from compose.yml, then set ENDPOINT, BUCKET, ACCESS_KEY_ID, SECRET_ACCESS_KEY, REGION and, when the server needs it, FORCE_PATH_STYLE=true on the web, worker and migrate services.
Next steps
Section titled “Next steps”- Configuration lists every setting and which ones you need.
- Upgrading and backups explains how to update without losing data.
- Set up email before inviting anyone: invitations, password resets and two-factor codes need it.
Chelsea is operated by Arepa Labs LLC