-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (72 loc) · 2 KB
/
docker-compose.yml
File metadata and controls
76 lines (72 loc) · 2 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
version: '3.8'
services:
brook-vpn:
image: teddysun/brook
container_name: brook-vpn
restart: unless-stopped
command: ["brook", "server", "-l", ":${BROOK_VPN_PORT}", "-p", "${BROOK_PASSWORD}"]
network_mode: host
volumes:
- brook-data:/data
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "${BROOK_VPN_PORT}"]
interval: 120s
timeout: 10s
retries: 3
deploy:
resources:
limits:
cpus: '0.50'
memory: 256M
security_opt:
- no-new-privileges:true
profiles:
- vpn
brook-socks5:
image: teddysun/brook
container_name: brook-socks5
restart: unless-stopped
command: ["brook", "socks5", "--listen", "${SERVER_IP}:${BROOK_SOCKS5_PORT}", "--username", "${BROOK_SOCKS5_USER}", "--password", "${BROOK_PASSWORD}"]
network_mode: host
volumes:
- brook-data:/data
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "${BROOK_SOCKS5_PORT}"]
interval: 120s
timeout: 10s
retries: 3
deploy:
resources:
limits:
cpus: '0.50'
memory: 256M
security_opt:
- no-new-privileges:true
profiles:
- socks5
brook-wss:
image: teddysun/brook
container_name: brook-wss
restart: unless-stopped
command: ["brook", "wssserver", "--domainaddress", "${DOMAIN}:${BROOK_WSS_PORT}", "--path", "/ws", "--cert", "/etc/brook-ssl/fullchain.pem", "--certkey", "/etc/brook-ssl/privkey.pem", "--password", "${BROOK_PASSWORD}"]
network_mode: host
volumes:
- brook-data:/data
- ${SSL_DIR}/fullchain.pem:/etc/brook-ssl/fullchain.pem:ro
- ${SSL_DIR}/privkey.pem:/etc/brook-ssl/privkey.pem:ro
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "${BROOK_WSS_PORT}"]
interval: 120s
timeout: 10s
retries: 3
deploy:
resources:
limits:
cpus: '0.50'
memory: 256M
security_opt:
- no-new-privileges:true
profiles:
- wss
volumes:
brook-data: