summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorhc <hc@a.nub.ninja>2026-02-07 12:15:01 +0000
committerhc <hc@a.nub.ninja>2026-02-07 12:15:01 +0000
commitf6cdeabe2f57b97299308e16486958ed122315b9 (patch)
treec570f1b5ef373eb251c8504992b95f1b7789746f /docker-compose.yml
initial commitHEADmain
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml14
1 files changed, 14 insertions, 0 deletions
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 @@
1services:
2 mullvad:
3 build: { context: ., dockerfile: Dockerfile.mullvad }
4 container_name: mullvad-vpn
5 cap_add: [NET_ADMIN]
6 devices: [/dev/net/tun:/dev/net/tun]
7 restart: unless-stopped
8
9 # Example: route any container through the VPN
10 app1:
11 image: rockylinux/rockylinux:10
12 network_mode: "container:mullvad-vpn"
13 depends_on: [mullvad]
14 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"