Skip to main content
Version: v7

Install with Docker

Chibisafe v7 runs the website and API in one image. An HTTPS reverse proxy forwards requests to the container's HTTP port, 24424.

Upgrading?

Use the v6-to-v7 migration guide before pointing v7 at existing data. For the older split-container setup, see the v6 Docker guide.

Configure the environment​

Create chibisafe.env with the values below and keep it private. Use your HTTPS hostname for PUBLIC_ORIGIN, without a path or trailing slash.

PUBLIC_ORIGIN=https://files.example.com
JWT_SECRET=
INSTANCE_ADMIN_USERNAME=admin
INSTANCE_ADMIN_PASSWORD=
FRONTEND_TRUST_PROXY_HOPS=1

Generate JWT_SECRET with openssl rand -hex 32 and keep it stable across container replacements. The username must have 3 to 24 letters, numbers, or underscores. Use a password of at least 12 characters and at most 72 UTF-8 bytes. The username and password create the first administrator on an empty database. Changing these variables later does not reset an existing account's password.

The proxy hop count is one for the single local HTTPS proxy in this guide. Adjust it to match your actual proxy chain.

Start the container​

Substitute the v7 tag you want from the release list. The image is available as chibisafe/chibisafe on Docker Hub or ghcr.io/chibisafe/chibisafe on GHCR.

docker run -d --name chibisafe --restart unless-stopped \
--env-file chibisafe.env \
-p 127.0.0.1:24424:24424 \
-v chibisafe-database:/app/database \
-v chibisafe-uploads:/app/uploads \
ghcr.io/chibisafe/chibisafe:v7.0.0

Connect the HTTPS proxy to port 24424, then open your public origin and sign in. /api/ready should return {"status":"ok"}. Startup applies SQLite migrations before starting the API, then starts the frontend after readiness. Check docker logs chibisafe if the container cannot become healthy.

Use Docker Compose​

From a checkout of the application repository, copy docker/compose.env.example to docker/compose.env, fill in the values above, and set CHIBISAFE_IMAGE to the full published image tag. Run these commands from the checkout root.

docker compose --env-file docker/compose.env -f docker/compose.yml pull chibisafe
docker compose --env-file docker/compose.env -f docker/compose.yml up --no-build -d

To build from that checkout, omit CHIBISAFE_IMAGE and use up --build -d instead. The Compose config includes the optional v6 exporter.

The Compose configuration limits the application container to 256 processes and threads, 1 GiB of memory, and two CPUs. Changes to these limits take effect when the container is recreated.

Keep the database and uploads volumes together. Back up both before changing the image tag.