forked from Iglesys347/castor
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
50 lines (45 loc) · 969 Bytes
/
docker-compose.yml
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
version: "3.6"
services:
tor:
build: ./tor
#image: ghcr.io/joshhighet/multisocks/tor:latest
networks:
- net_tor
expose:
- 9050
- 9051
deploy:
replicas: ${SOCKS:-5}
restart: on-failure
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
volumes:
haproxy_conf:
networks:
net_tor:
name: net_tor