Gluetun
Gluetun is a Docker container that acts as a VPN client and allows other containers to route their traffic through a VPN connection.
For your own VPN, you need to create a configuration file wireguard.conf
. This can be generated and downloaded from wg-easy, for example.
Other VPN providers can also be used.
Connecting to Other Containers
Other containers can access the Gluetun container using network_mode
.
If both are in the same docker-compose file, the service name can be used.