docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=privatevpn \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun
version: "3"
services:
gluetun:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
environment:
- VPN_SERVICE_PROVIDER=privatevpn
- OPENVPN_USER=abc
- OPENVPN_PASSWORD=abc
- SERVER_COUNTRIES=Netherlands
VPN_SERVICE_PROVIDER=privatevpn
OPENVPN_USER
OPENVPN_PASSWORD
SERVER_COUNTRIES
: Comma separated list of countriesSERVER_CITIES
: Comma separated list of citiesSERVER_HOSTNAMES
: Comma separated list of server hostnamesVPN_ENDPOINT_PORT
: Custom OpenVPN server endpoint port to use
To see a list of servers available, list the VPN servers with Gluetun.