-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
28 lines (26 loc) · 804 Bytes
/
docker-compose.example.yml
File metadata and controls
28 lines (26 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Example Docker Compose configuration for Torarr
# Copy this file to docker-compose.yml and customize as needed
services:
tor-proxy:
image: ghcr.io/eslutz/torarr:latest
container_name: tor-proxy
environment:
- TZ=${TZ:-America/New_York}
- TOR_CONTROL_PASSWORD=${TOR_CONTROL_PASSWORD:-}
- HEALTH_PORT=9091
- LOG_LEVEL=INFO
ports:
- "127.0.0.1:9050:9050" # SOCKS5 proxy
- "127.0.0.1:9091:9091" # Health endpoint (optional)
volumes:
- tor-data:/var/lib/tor # Consensus cache for fast restarts
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "--timeout=5", "http://localhost:9091/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
volumes:
tor-data:
driver: local