-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
104 lines (100 loc) · 2.27 KB
/
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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: '3'
services:
vpn:
image: ghcr.io/jsiebens/ionscale:0.16.0
container_name: ionscale-vpn
volumes:
- ./ionscale/config.yaml:/etc/ionscale/config.yaml
- ./ionscale/data:/data
hostname: 'ionscale-vpn'
restart: unless-stopped
command: "server --config /etc/ionscale/config.yaml"
networks:
vpn:
ipv4_address: 10.18.10.2
ports:
- 443:443
- 3478:3478/udp
warp:
depends_on:
- vpn
image: ionscale_warp
container_name: ionscale-warp
build:
dockerfile: ./warp/warp.Dockerfile
hostname: warp-exit-node
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv4.conf.all.src_valid_mark=1
privileged: true
volumes:
- ./warp/tailscale:/var/lib/tailscale
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
- sys_module
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"curl",
"-fsS",
"--connect-timeout",
"1",
"--max-time 3",
"https://cloudflare.com/cdn-cgi/trace",
"|",
"grep",
"-qE",
"warp=(plus|on)",
"||",
"exit",
"1"
]
interval: 15s
timeout: 5s
retries: 3
start_period: 30s
environment:
- PUBLIC_ADDR= # public address in public_addr
- WARP_LICENSE_KEY= # License key for Warp+ (not required)
networks:
vpn:
ipv4_address: 10.18.10.3
nord:
depends_on:
- vpn
image: ionscale_nord
container_name: ionscale-nord
build:
dockerfile: ./nord/nord.Dockerfile
hostname: nord-exit-node
devices:
- /dev/net/tun
volumes:
- ./nord/tailscale:/var/lib/tailscale
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
- net_raw
- sys_module
restart: unless-stopped
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
- net.ipv4.conf.all.src_valid_mark=1
tty: true
privileged: true
environment:
- PUBLIC_ADDR= # public address in public_addr
networks:
vpn:
ipv4_address: 10.18.10.4
networks:
vpn:
name: ionscale-net
ipam:
driver: default
config:
- subnet: 10.18.0.0/16
gateway: 10.18.10.1