Skip to content

Install

The self-hosted edition is one Docker image with everything inside:

Component Purpose
PostgreSQL Application database (users, workspaces, notes, teams, messages)
Backend HTTP / WebSocket / files and container APIs
nginx Single entry point (default 8080 → backend + static assets)
Workspace containers Runs workspace containers through the host docker.sock

After install you only need to remember: container name pacasys, one data directory, one port (default 8080).

Item Requirement
OS Any Linux that runs Docker (x86_64)
Docker 20.10+
Privileges root
Memory ≥ 2 GB
Disk data partition ≥ 5 GB, root partition (/var/lib/docker) ≥ 2 GB
Port one free port (default 8080); root path only, no sub-path deployment
终端窗口
cd /opt/pacasys
sudo ./install.sh

The script pre-checks, loads the bundled image, writes .env, creates the container and waits for healthy. First boot initialises the database — 40–90 seconds is normal.

终端窗口
sudo ./install.sh --port 9000
sudo ./install.sh --data-dir /data/pacasys # recommended: dedicated disk

Open http://<server-ip>:8080; admin console at http://<server-ip>:8080/boss.

The login form accepts email only (usernames are not credentials):

终端窗口
sudo docker exec pacasys cat /var/lib/pacasys/secrets/first-login.txt

Log in, then change the password immediately in the admin console and delete the file.

终端窗口
sudo ./doctor.sh

All 13 checks green means you are good to go. Anything red — follow the hint or see Troubleshooting.

Path Contents
/var/lib/pacasys data root: PostgreSQL data, workspace files, secrets, logs, backups
/var/lib/pacasys/secrets master.key, jwt.secret, db.password, first-login info
/var/lib/pacasys/storage workspace files (personal / team / system)
./.env runtime settings (port, image, data dir, socket GID)
Script Purpose
install.sh install / recreate the container from .env
upgrade.sh upgrade with automatic rollback
backup.sh backup (database + files + secrets, keeps the last 7)
doctor.sh read-only diagnostics
uninstall.sh uninstall (keeps data unless --purge)

The default setup is plain HTTP. Put HTTPS in front (reverse proxy or load balancer) and restrict /boss, see Security baseline.