Skip to content

Instantly share code, notes, and snippets.

@ecliptik
Created March 19, 2021 06:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ecliptik/736c53446f0755eb2023fa7a90ed5292 to your computer and use it in GitHub Desktop.
OpenVPN and Transmission in docker-compose
version: '3.8'
services:
openvpn:
build:
context: .
dockerfile: Dockerfile.openvpn
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun"
volumes:
- ./vpn.ovpn:/etc/openvpn/vpn.ovpn
restart: always
network_mode: "host"
transmission:
build:
context: .
dockerfile: Dockerfile.transmission
volumes:
- /home/media/torrents:/torrents
- /home/media/transmission:/etc/transmission
network_mode: "service:openvpn"
restart: always
depends_on:
- "openvpn"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment