-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (69 loc) · 1.88 KB
/
docker-compose.yml
File metadata and controls
74 lines (69 loc) · 1.88 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
version: '3'
services:
# Proxy mode service
proxy:
build: .
ports:
- "1080:1080" # SOCKS5 proxy port
- "9000:9000" # Tunnel listen port
environment:
- SECRET=changeme # Change this to a secure secret
command: >
--proxy-listen-addr 0.0.0.0:1080
--tunnel-listen-port 9000
--secret ${SECRET:-changeme}
--debug
# Agent mode service
agent:
build: .
environment:
- SECRET=changeme # Change this to a secure secret
- PROXY_HOST=proxy # Change this to your proxy host if not using docker-compose networking
command: >
--tunnel-addr ${PROXY_HOST:-proxy}:9000
--secret ${SECRET:-changeme}
--debug
depends_on:
- proxy
# Relay mode service
relay:
build: .
ports:
- "9000:9000" # Relay listen port
environment:
- SECRET=changeme # Change this to a secure secret
command: >
--mode relay
--relay-listen-port 9000
--secret ${SECRET:-changeme}
--debug
# Proxy via Relay mode service
proxy-via-relay:
build: .
ports:
- "1080:1080" # SOCKS5 proxy port
environment:
- SECRET=changeme # Change this to a secure secret
- RELAY_HOST=relay # Change this to your relay host if not using docker-compose networking
command: >
--mode proxy
--register
--relay-addr ${RELAY_HOST:-relay}:9000
--proxy-listen-addr 0.0.0.0:1080
--secret ${SECRET:-changeme}
--debug
depends_on:
- relay
# Agent via Relay mode service
agent-via-relay:
build: .
environment:
- SECRET=changeme # Change this to a secure secret
- RELAY_HOST=relay # Change this to your relay host if not using docker-compose networking
command: >
--mode agent
--relay-addr ${RELAY_HOST:-relay}:9000
--secret ${SECRET:-changeme}
--debug
depends_on:
- relay