- `internal/wireguard` client package with unit tests - Implementation works with kernel space or user space if unavailable - `WIREGUARD_PRIVATE_KEY` - `WIREGUARD_ADDRESS` - `WIREGUARD_PRESHARED_KEY` - `WIREGUARD_PORT` - `internal/netlink` package used by `internal/wireguard`
26 lines
630 B
YAML
26 lines
630 B
YAML
version: "3.7"
|
|
services:
|
|
gluetun:
|
|
image: qmcgaw/gluetun
|
|
container_name: gluetun
|
|
cap_add:
|
|
- NET_ADMIN
|
|
network_mode: bridge
|
|
ports:
|
|
- 8888:8888/tcp # HTTP proxy
|
|
- 8388:8388/tcp # Shadowsocks
|
|
- 8388:8388/udp # Shadowsocks
|
|
- 8000:8000/tcp # Built-in HTTP control server
|
|
# command:
|
|
volumes:
|
|
- /yourpath:/gluetun
|
|
environment:
|
|
# More variables are available, see the Wiki table
|
|
- OPENVPN_USER=
|
|
- OPENVPN_PASSWORD=
|
|
- VPNSP=private internet access
|
|
- VPN_TYPE=openvpn
|
|
# Timezone for accurate logs times
|
|
- TZ=
|
|
restart: always
|