Docs

Host ports

The ports Drive publishes on the host and the variables that change them.

Ports

Set these in deploy/.env, or in the shell for development.

Variable Default What
DRIVE_WEB_PORT 5173 Web app
DRIVE_PORT 8080 API
DRIVE_HTTP_PORT 80 HTTPS proxy, plain http (--profile https)
DRIVE_HTTPS_PORT 443 HTTPS proxy (--profile https)
DRIVE_DEV_WEB_PORT 5173 Web app in development
DRIVE_DEV_API_PORT 8090 API in development
DRIVE_DEV_POSTGRES_PORT 5433 Postgres in development, localhost only

DRIVE_BIND_ADDRESS (default 0.0.0.0) sets the address the web and API ports listen on. Use 127.0.0.1 when the HTTPS proxy is the only way in. Postgres, LibreTranslate and the embedding sidecar are not published in production.

Change a port

For make run-local, pass the ports on the command line:

DRIVE_WEB_PORT=5174 DRIVE_PORT=8081 make run-local

For a normal install, set them in deploy/.env and run docker compose --env-file deploy/.env -f deploy/docker-compose.yml up -d again. For development, pass them to make, for example make dev-api DRIVE_DEV_API_PORT=9000.

See also Configuration.