From 974fc7274d724ea50c84332bf4ddcd59ecb6f5f1 Mon Sep 17 00:00:00 2001 From: Acenl12 <38886380+Acenl12@users.noreply.github.com> Date: Sat, 6 Jan 2024 15:58:39 +0100 Subject: [PATCH 1/2] Create docker-compose-vpn.yml --- docker-compose-vpn.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docker-compose-vpn.yml diff --git a/docker-compose-vpn.yml b/docker-compose-vpn.yml new file mode 100644 index 0000000..435fe6a --- /dev/null +++ b/docker-compose-vpn.yml @@ -0,0 +1,11 @@ +# cat docker-compose.yml +version: '3.7' +services: + streamonitor: + build: ./ + image: streamonitor:latest + volumes: + - ./downloads:/app/downloads + - ./config.json:/app/config.json + - ./parameters.py:/app/parameters.py + network_mode: container:protonwire From 4cee9796c537f0bf25ff6e2a7b20fd250e589943 Mon Sep 17 00:00:00 2001 From: Acenl12 <38886380+Acenl12@users.noreply.github.com> Date: Sat, 6 Jan 2024 16:04:59 +0100 Subject: [PATCH 2/2] Update docker-compose-vpn.yml --- docker-compose-vpn.yml | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/docker-compose-vpn.yml b/docker-compose-vpn.yml index 435fe6a..e5dadfc 100644 --- a/docker-compose-vpn.yml +++ b/docker-compose-vpn.yml @@ -1,6 +1,44 @@ # cat docker-compose.yml version: '3.7' services: + protonwire: + container_name: protonwire + # Use semver tags or sha256 hashes of manifests. + # using latest tag can lead to issues when used with + # automatic image updaters like watchtower. + image: ghcr.io/tprasadtp/protonwire:latest + init: true + restart: unless-stopped + environment: + # Quote this value as server name can contain '#'. + PROTONVPN_SERVER: "" # NL-FREE#100070 + # Set this to 1 to show debug logs for issue forms. + DEBUG: "0" + # Set this to 0 to disable kill-switch. + KILL_SWITCH: "1" + WIREGUARD_PRIVATE_KEY: "" + # NET_ADMIN capability is mandatory! + cap_add: + - NET_ADMIN + # sysctl net.ipv4.conf.all.rp_filter is mandatory! + # net.ipv6.conf.all.disable_ipv6 disables IPv6 as protonVPN does not support IPv6. + # 'net.*' sysctls are not required on application containers, + # as they share network stack with protonwire container. + sysctls: + net.ipv4.conf.all.rp_filter: 2 + net.ipv6.conf.all.disable_ipv6: 1 + ports: + - 8000:80 + # This is sample application which will be routed over VPN + # Replace this with your preferred application(s). + caddy_proxy: + image: caddy:latest + network_mode: service:protonwire + command: | + caddy reverse-proxy \ + --change-host-header \ + --from :80 \ + --to https://ip.me:443 streamonitor: build: ./ image: streamonitor:latest @@ -8,4 +46,4 @@ services: - ./downloads:/app/downloads - ./config.json:/app/config.json - ./parameters.py:/app/parameters.py - network_mode: container:protonwire + network_mode: service:protonwire