Installation
torq runs as a single container with an embedded SQLite database. All you need is Docker and a persistent volume for /data.
Run torq
- Docker CLI
- Docker Compose (Prebuilt)
- Docker Compose (Build from source)
docker run -d --name torq --restart unless-stopped \
-p 8080:8080 \
-v torq-data:/data \
-e TZ=Europe/Berlin \
ghcr.io/app-torq/torq:latest
Images are published for linux/amd64 and linux/arm64 (including Raspberry Pi 4/5 and ARM cloud servers). Every image is also tagged with its commit (ghcr.io/app-torq/torq:sha-<commit>) and release version (ghcr.io/app-torq/torq:v1.18.0), so you can pin a specific version if you prefer.
Create a docker-compose.yml file:
services:
torq:
image: ghcr.io/app-torq/torq:latest
container_name: torq
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- torq-data:/data
environment:
TZ: Europe/Berlin
# TORQ_BASE_URL: https://torq.example.com
# TORQ_TRUSTED_PROXIES: 172.16.0.0/12
volumes:
torq-data:
Start torq in the background:
docker compose up -d
The main repository's docker-compose.yml builds the image locally:
git clone https://github.com/app-torq/torq.git
cd torq
docker compose up -d
Optional settings go into a .env file next to docker-compose.yml (see .env.example).
First start
Open http://localhost:8080 in your browser. On a fresh database, torq prompts you to:
- Create the administrator account.
- Choose the default unit system (metric, US, or UK). These become the defaults for new users; each user can override their preferences later under Units and formats.
Until the first administrator account exists, anyone who can reach torq can create it. Never expose a brand-new instance to the internet before completing this step.
Administrators can add more users under Settings → Users. Everyone in a torq instance shares one garage; administrators manage users, roles and permissions, webhooks, and instance settings.
Behind a reverse proxy
torq does not terminate TLS itself. In production, place a reverse proxy (or a Cloudflare Tunnel) in front of port 8080 and set two environment variables:
TORQ_BASE_URL: Set to your public HTTPS URL without a trailing slash (for examplehttps://torq.example.com). This enables links in notifications, passkeys, password resets, and theSecurecookie flag.TORQ_TRUSTED_PROXIES: Set to the IP or CIDR of your reverse proxy (for example127.0.0.1/32or your Docker bridge subnet172.16.0.0/12) so login throttling sees real client IPs viaX-Forwarded-Forand trustsX-Forwarded-Proto.
- Caddy
- Nginx
- Traefik (Docker labels)
torq.example.com {
reverse_proxy localhost:8080
}
server {
listen 443 ssl http2;
server_name torq.example.com;
# Increase if you raise TORQ_MAX_UPLOAD_MB
client_max_body_size 32M;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
labels:
- "traefik.enable=true"
- "traefik.http.routers.torq.rule=Host(`torq.example.com`)"
- "traefik.http.routers.torq.entrypoints=websecure"
- "traefik.http.routers.torq.tls.certresolver=letsencrypt"
- "traefik.http.services.torq.loadbalancer.server.port=8080"
Updating torq
Back up /data first (see Data and backups), then pull and recreate the container:
docker compose pull
docker compose up -d
Database schema migrations run automatically on startup, and torq saves an automatic pre-upgrade backup in /data/backups/ before migrating.
Requirements
| Resource | Requirement |
|---|---|
| Disk | ~30 MB for the image, plus your SQLite database and uploaded photos/PDFs |
| Memory | Well under 100 MB of RAM in normal use; an online vehicle catalog update briefly uses up to ~200 MB |
| Network | Runs completely offline; internet access is only needed for webhooks, SMTP email, online catalog updates, or optional spec-sheet auto-fill |