-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
46 lines (45 loc) · 1.38 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
version: "2"
services:
# Start: Replace this block with your VPN servie provider
# Noted that 'privileged: true' in your VPN config is needed for docker-ap to manipulate AP
surfshark:
image: ilteoood/docker-surfshark
container_name: surfshark
environment:
- SURFSHARK_USER=YOUR_USERNAME
- SURFSHARK_PASSWORD=YOUR_PASSWORD
- SURFSHARK_COUNTRY=jp
- SURFSHARK_CITY=tok
- CONNECTION_TYPE=udp
- LAN_NETWORK=192.168.1.0/24
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
privileged: true
restart: unless-stopped
# End:: Replace this block with your VPN servie provider
docker-ap:
build:
context: docker-ap
dockerfile: Dockerfile
container_name: docker-ap
image: dokcer-ap
restart: unless-stopped
privileged: true
depends_on:
surfshark:
condition: service_healthy
network_mode: service:surfshark
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd
environment:
- INTERFACE=wlan0
- OUTGOINGS=tun0,eth0
- CHANNEL=36
- WPA_PASSPHRASE=password
- SSID=docker-ap
- SUBNET=192.168.2.0
- AP_ADDR=192.168.2.1
- DNS_ADDRESSES=192.168.1.1