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