forked from Iglesys347/castor
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (80 loc) · 1.63 KB
/
docker-compose.yml
File metadata and controls
86 lines (80 loc) · 1.63 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
services:
tor:
build: ./tor
#image: ghcr.io/joshhighet/multisocks/tor:latest
networks:
- net_tor
expose:
- 9050
- 9051
deploy:
replicas: ${SOCKS:-5}
restart: always
metrics:
build: ./metrics
networks:
- net_tor
ports:
- "8000:8000"
depends_on:
- tor
expose:
- 8000
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- ALLOWED_ORIGINS=${HOSTNAME:-localhost}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
deploy:
replicas: 1
resources:
limits:
memory: 512M
reservations:
memory: 256M
haproxy:
build: ./haproxy
restart: always
depends_on:
tor:
condition: service_started
haconfig-generator:
condition: service_completed_successfully
ports:
- 8080:8080
- 1337:1337
volumes:
- haproxy_conf:/usr/local/etc/haproxy
- ./haproxy/check-tor.sh:/usr/local/etc/haproxy/check-tor.sh
networks:
- net_tor
haconfig-generator:
build: ./haconfig
command: python gen_conf.py
depends_on:
tor:
condition: service_started
volumes:
- haproxy_conf:/usr/local/etc/haproxy
- /var/run/docker.sock:/tmp/docker.sock
networks:
- net_tor
dashboard:
build: ./dashboard
ports:
- "3000:3000"
depends_on:
- metrics
networks:
- net_tor
volumes:
haproxy_conf:
networks:
net_tor:
name: net_tor