-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (50 loc) · 1.74 KB
/
docker-compose.yml
File metadata and controls
51 lines (50 loc) · 1.74 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3.9'
services:
tor-service:
container_name: tor-service
build: .
ports:
- "0.0.0.0:9000:9000" # HAProxy Port
# - "0.0.0.0:9001:9001"
- "0.0.0.0:9002:9002"
environment:
- NUM_TOR_INSTANCES=2 # Number of Tor instances you want to run default is 5
- HAPROXY_USERNMAE=admin # default value is admin
- HAPROXY_PASSWORD=admin # default value is admin
- HAPROXY_TIMEOUT_CONNECT=10s
- HAPROXY_TIMEOUT_CLIENT=30s
- HAPROXY_TIMEOUT_SERVER=30s
- HAPROXY_RETRIES=3
- ROTATION_INTERVAL_MINUTES=5 # Identity rotation interval in minutes
deploy:
resources:
limits:
cpus: '2.0' # e.g., 2 CPU cores
memory: 2G # e.g., 2 GB RAM
reservations:
cpus: '0.5' # e.g., reserve 0.5 CPU cores
memory: 512M # e.g., reserve 512 MB RAM
# tor-rotator:
# image: hatemjaber/tor-rotator:1.3.9
# container_name: tor-rotator
# hostname: tor-rotator
# ports:
# - "0.0.0.0:9000:9000" # HAProxy Port
# # - "0.0.0.0:9001:9001"
# environment:
# - NUM_TOR_INSTANCES=2 # Number of Tor instances you want to run default is 5
# - HAPROXY_USERNMAE=admin # default value is admin
# - HAPROXY_PASSWORD=admin # default value is admin
# - HAPROXY_TIMEOUT_CONNECT=10s
# - HAPROXY_TIMEOUT_CLIENT=30s
# - HAPROXY_TIMEOUT_SERVER=30s
# - HAPROXY_RETRIES=3
# - ROTATION_INTERVAL_MINUTES=5 # Identity rotation interval in minutes
# deploy:
# resources:
# limits:
# cpus: '2.0' # e.g., 2 CPU cores
# memory: 2G # e.g., 2 GB RAM
# reservations:
# cpus: '0.5' # e.g., reserve 0.5 CPU cores
# memory: 512M # e.g., reserve 512 MB RAM