Created
March 19, 2021 06:22
-
-
Save ecliptik/736c53446f0755eb2023fa7a90ed5292 to your computer and use it in GitHub Desktop.
OpenVPN and Transmission in docker-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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