From 44f8ee26280a6cf22dabe1fe9b1a8877da9b3818 Mon Sep 17 00:00:00 2001 From: meftimes Date: Wed, 1 Nov 2023 20:29:06 -0400 Subject: [PATCH] add haugene/openvpn-transmission container --- openvpn-transmission/.env | 2 ++ openvpn-transmission/openvpn-transmission.yml | 36 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 openvpn-transmission/.env create mode 100644 openvpn-transmission/openvpn-transmission.yml diff --git a/openvpn-transmission/.env b/openvpn-transmission/.env new file mode 100644 index 0000000..043526a --- /dev/null +++ b/openvpn-transmission/.env @@ -0,0 +1,2 @@ +OPENVPN_USERNAME=username_goes_here +OPENVPN_PASSWORD=password_goes_here diff --git a/openvpn-transmission/openvpn-transmission.yml b/openvpn-transmission/openvpn-transmission.yml new file mode 100644 index 0000000..2a566d8 --- /dev/null +++ b/openvpn-transmission/openvpn-transmission.yml @@ -0,0 +1,36 @@ +version: '3.3' + +services: + transmission-openvpn: + image: haugene/transmission-openvpn + container_name: openvpn-transmission + environment: + - OPENVPN_PROVIDER=MULLVAD + - OPENVPN_CONFIG=ca_tor + #- LOCAL_NETWORK=192.168.0.0/16 + env_file: + - .env + sysctls: + - "net.ipv6.conf.all.disable_ipv6=0" + cap_add: + - NET_ADMIN + volumes: + - '/home/meftimes/docker/openvpn-transmission/data:/data' + - '/home/meftimes/docker/openvpn-transmission/config:/config' + labels: + - "traefik.enable=true" + - "traefik.http.routers.openvpn-transmission.entrypoints=websecure" + - "traefik.http.routers.openvpn-transmission.rule=Host(`transmission2.meftimes.com`)" + - "traefik.http.routers.openvpn-transmission.tls.certresolver=letsencrypt" + - "traefik.http.routers.openvpn-transmission.middlewares=authelia@docker" + - "traefik.http.services.openvpn-transmission.loadbalancer.server.port=9091" + networks: + - proxy + logging: + driver: json-file + options: + max-size: 10m + +networks: + proxy: + external: true