Self-hosting guide
Run c-note on infrastructure you control.
Deploy on a Linux host, VM, or Proxmox/LXC environment. Keep your Markdown files, accounts, backups, and collaboration on your own infrastructure.
Recommended: use the installer on a fresh Linux host. It creates safe localhost defaults, starts Docker Compose, waits for health, and preserves existing data when rerun.
1. Requirements
- Linux host or VM with persistent storage.
- Docker Engine and Docker Compose v2.
- At least 2 GB RAM for a small team deployment.
- A TLS certificate and reverse proxy for public access.
2. Fast install
Download and run the repeatable installer:
curl -fsSL https://build.c-note.dev/install.sh -o install.sh && chmod +x install.sh && ./install.shChoose another location or ref with CNOTE_INSTALL_DIR=/srv/c-note CNOTE_REF=main ./install.sh.
3. Configure the server
For a manual Compose setup, copy .env.example, set APP_ORIGIN to the exact HTTPS origin, set COOKIE_SECURE=true, then run docker compose up -d --build. Check health at /api/v1/health.
4. Reverse proxy
Keep port 3000 private, proxy to 127.0.0.1:3000, pass the original host and HTTPS scheme, and preserve WebSocket upgrade headers with a long read timeout.
5. First login and upgrades
- Open the exact origin configured in
APP_ORIGIN. - Use the bootstrap credentials
admin/c-note. - Change the password immediately on first login.
- Rerun the installer or Compose build to upgrade; the existing environment and data are preserved.
6. Downloads
Desktop clients connect to the same server origin through the shared c-note protocol.