diff options
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 14 |
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 @@ | |||
| 1 | services: | ||
| 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" | ||
