Docs

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.

  1. Create the settings file

    cp deploy/.env.example deploy/.env && chmod 600 deploy/.env
    
  2. Set paths and secrets

    In deploy/.env, set the four DRIVE_*_LOCATION folders (documents, app data, database, translation models) to absolute host paths. Set DRIVE_WORKER_TOKEN and POSTGRES_PASSWORD to long random values. All other settings are in Configuration.

  3. 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
    
  4. Create the admin account

    Open http://<your-host>:5173 and 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

  1. Set the name

    Set DRIVE_DOMAIN=drive.example.com and DRIVE_BIND_ADDRESS=127.0.0.1 in deploy/.env. Point the domain’s DNS at this machine and open ports 80 and 443.

  2. 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.