This guide runs Gluetun using Docker Compose.
services:
gluetun:
image: qmcgaw/gluetun:latest
cap_add:
- NET_ADMIN
environment:
- VPN_SERVICE_PROVIDER=provider
- OPENVPN_USER=your-user
- OPENVPN_PASSWORD=your-password
Save it as docker-compose.yml.
docker compose up -d
Attach other containers to the Gluetun network to route their traffic through the VPN.
See Gluetun Configuration for configuration guidance.
Any questions?
Feel free to contact us. Find all contact information on our contact page.
Prefer automation? See Gluetun Ansible Setup for an example playbook.
Prefer containers? See Gluetun Docker Setup.
See Gluetun Security for hardening guidance.