Tor Browser running in a containerised desktop environment
4.5K
Tor Browser running in a containerised desktop environment, streamed to your browser via Selkies. Built on LinuxServer's baseimage-selkies.
services:
tor:
image: justsky/tor:latest
container_name: tor
restart: unless-stopped
security_opt:
- no-new-privileges:true
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- TITLE=Tor Browser
volumes:
- /path/to/config:/config
ports:
- 3000:3000
docker run -d \
--name tor \
--security-opt no-new-privileges:true \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Etc/UTC \
-e TITLE="Tor Browser" \
-v /path/to/config:/config \
-p 3000:3000 \
--restart unless-stopped \
justsky/tor:latest
| Variable | Default | Description |
|---|---|---|
PUID | 1000 | User ID for file ownership |
PGID | 1000 | Group ID for file ownership |
TZ | Etc/UTC | Timezone (e.g. Europe/London) |
TITLE | Tor Browser | Tab title shown in the browser UI |
DISABLE_ZINK | — | Set to true to disable Zink even when GPU is detected |
DRI_NODE | — | GPU device for hardware encoding (e.g. /dev/dri/renderD128) |
HARDEN_DESKTOP | — | Set to true to disable terminals, sudo, and file transfers |
SELKIES_ENCODER | auto | Video encoder (x264enc, vp8enc, jpeg) |
SELKIES_FRAMERATE | 60 | Stream framerate |
SELKIES_VIDEO_BITRATE | 2000 | Video bitrate in kbps |
See baseimage-selkies for the full list of Selkies environment variables.
| Path | Description |
|---|---|
/config | Persistent user config, Tor Browser profile, and bookmarks |
| Port | Description |
|---|---|
3000 | Selkies web UI (HTTP) |
3001 | Selkies web UI (HTTPS) |
Navigate to http://<host>:3000 in your browser. Tor Browser launches automatically on startup.
Selkies uses WebSocket-based streaming — no UDP or TURN server configuration required. Add the container as a target resource in Pangolin. Ensure your Traefik entrypoint passes through WebSocket upgrades (default behaviour).
environment:
- DRI_NODE=/dev/dri/renderD128
devices:
- /dev/dri:/dev/dri
docker build \
--build-arg BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
--build-arg VERSION=local \
-t docker-tor .
See CONTRIBUTING.md.
See SECURITY.md for vulnerability reporting.
Content type
Image
Digest
sha256:2624a9478…
Size
993.3 MB
Last updated
6 days ago
docker pull justsky/tor