From f6cdeabe2f57b97299308e16486958ed122315b9 Mon Sep 17 00:00:00 2001 From: hc Date: Sat, 7 Feb 2026 12:15:01 +0000 Subject: initial commit --- docker-compose.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 docker-compose.yml (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..96437e5 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,14 @@ +services: + mullvad: + build: { context: ., dockerfile: Dockerfile.mullvad } + container_name: mullvad-vpn + cap_add: [NET_ADMIN] + devices: [/dev/net/tun:/dev/net/tun] + restart: unless-stopped + + # Example: route any container through the VPN + app1: + image: rockylinux/rockylinux:10 + network_mode: "container:mullvad-vpn" + depends_on: [mullvad] + command: bash -c "dnf install -y curl && curl -s https://am.i.mullvad.net/connected && curl -s https://am.i.mullvad.net/ip && curl -s https://am.i.mullvad.net/country && curl -s https://am.i.mullvad.net/city" -- cgit