Run on a server
Start the production Compose stack on a Linux host with Docker.
Start the stack
You need Docker with Compose v2, about 6 GB of disk and 4 GB of RAM.
-
Create the settings file
cp deploy/.env.example deploy/.env && chmod 600 deploy/.env -
Set paths and secrets
In
deploy/.env, set the fourDRIVE_*_LOCATIONfolders (documents, app data, database, translation models) to absolute host paths. SetDRIVE_WORKER_TOKENandPOSTGRES_PASSWORDto long random values. All other settings are in Configuration. -
Pull and start
docker compose --env-file deploy/.env -f deploy/docker-compose.yml pull docker compose --env-file deploy/.env -f deploy/docker-compose.yml up -d -
Create the admin account
Open
http://<your-host>:5173and fill in the setup page. Do it at once: until the first account exists, anyone who can reach the page can create it.
Choose the images
The stack runs ghcr.io/sunday-studio/driver-web, -api and -worker, for amd64 and arm64. Set DRIVE_VERSION in deploy/.env to a release such as 0.2.0, or leave it at latest. To build them on the host instead, run make docker-build, then start as above.
Add HTTPS
-
Set the name
Set
DRIVE_DOMAIN=drive.example.comandDRIVE_BIND_ADDRESS=127.0.0.1indeploy/.env. Point the domain’s DNS at this machine and open ports 80 and 443. -
Start with the profile
docker compose --env-file deploy/.env -f deploy/docker-compose.yml --profile https up -d
Back up before you rely on this host. See Back up and restore and Go live.