Go-live checklist
The checks to finish before you trust Drive with real documents.
Before you start
- Docker with Compose v2, 4 GB of RAM and 6 GB of disk, plus room for documents.
- Postgres and app-data on local disk. Documents can sit on a NAS, see Keep documents on a NAS.
-
deploy/.envcopied fromdeploy/.env.example, with the host paths set.
Secrets
-
POSTGRES_PASSWORDis long and random. Tryopenssl rand -hex 24. -
DRIVE_WORKER_TOKENis at least 32 random characters. -
DRIVE_ADMIN_TOKENis unset. -
chmod 600 deploy/.env, and never commit it.
More settings are in Configuration.
HTTPS
-
Set the domain
In
deploy/.env, setDRIVE_DOMAIN=drive.example.comandDRIVE_BIND_ADDRESS=127.0.0.1. Point the domain at this machine and open ports 80 and 443. -
Start with the https profile
docker compose --env-file deploy/.env -f deploy/docker-compose.yml --profile https up -d
Caddy gets and renews the certificate. Using another proxy: forward to web:80, send X-Forwarded-For and X-Forwarded-Proto, and do not buffer /api/events.
First start
- Create the first admin straight away. Until it exists, anyone who can reach the server can create it.
- Add the other people in Settings. Viewers see only the documents they are given.
- Settings, then Library folder, shows
/documents. - A scanned PDF dropped in the folder becomes readable, translated and searchable.
- Locked out later? See Reset a password.
Backups
- Documents are backed up where they live. Drive never changes them.
-
make backupruns nightly, for example0 2 * * * cd /srv/drive && make backup. -
backups/is copied off the machine. - You have practised one restore. See Back up and restore.
Monitoring
-
https://your-domain/api/healthanswers. Point an uptime monitor at it. - Settings, then Processing health, shows the worker and no failed items.
- Optional: Telemetry, off by default.
Known limits
- No two-factor sign-in.
- Search matches words. Semantic search is off by default.
- One worker handles one document at a time, about 7 seconds per scanned page.