Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| docker_notes:docker-deluge [2024-01-10 Wed wk02 19:51] – [OpenVPN setup] baumkp | docker_notes:docker-deluge [2025-06-21 Sat wk25 13:00] (current) – [Compose file] baumkp | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{tag> | + | {{tag> |
| ======Docker Deluge Image / Service====== | ======Docker Deluge Image / Service====== | ||
| I want a torrent service that uses a VPN and is set-up to block non VPN WAN (internet) access. | I want a torrent service that uses a VPN and is set-up to block non VPN WAN (internet) access. | ||
| Line 5: | Line 5: | ||
| I have been successfully been running this in a container on my home server since early 2023. This replaced the a similar setup that have I been operating since about 2017 on a virtual machine using Linux KVM/ | I have been successfully been running this in a container on my home server since early 2023. This replaced the a similar setup that have I been operating since about 2017 on a virtual machine using Linux KVM/ | ||
| - | =====s6 supervision rc system===== | ||
| - | I decided to build this container image based upon Alpine Linux using the [[https:// | ||
| - | S6 [[http:// | ||
| - | |||
| - | ++++Basic S6 commands:| | ||
| - | |||
| - | *'' | ||
| - | *'' | ||
| - | *'' | ||
| - | *'' | ||
| - | *'' | ||
| - | *'' | ||
| - | *'' | ||
| - | *'' | ||
| - | |||
| - | BTW dont spell dependencies as dependencies and wonder why things don't work, lol the English language sucks. | ||
| - | ++++ | ||
| - | |||
| - | |||
| - | Reference: | ||
| - | *[[https:// | ||
| - | *[[https:// | ||
| - | *[[https:// | ||
| - | |||
| - | ---- | ||
| - | |||
| - | Other Supervisor software discussions: | ||
| - | *[[https:// | ||
| - | *supervisord: | ||
| - | *[[https:// | ||
| =====dockerfile===== | =====dockerfile===== | ||
| ++++Dockerfile| | ++++Dockerfile| | ||
| Line 110: | Line 80: | ||
| * where $lan is set to lan interface, e.g. enp1s0 | * where $lan is set to lan interface, e.g. enp1s0 | ||
| * '' | * '' | ||
| - | * When running nftables to stop leakage of vpn it was found that the docker networking cause failure. | + | * When running nftables to stop leakage of vpn it was found that the docker networking cause failure. |
| * Need to manually create ++/ | * Need to manually create ++/ | ||
| #!/bin/sh | #!/bin/sh | ||
| Line 118: | Line 88: | ||
| chmod 660 / | chmod 660 / | ||
| - | echo " | ||
| - | echo " | ||
| echo " | echo " | ||
| echo " | echo " | ||
| Line 135: | Line 103: | ||
| *To check external IP '' | *To check external IP '' | ||
| *OpenVPN [[https:// | *OpenVPN [[https:// | ||
| + | |||
| + | *[[https:// | ||
| + | *Add '' | ||
| + | *Or | ||
| + | < | ||
| + | - / | ||
| + | </ | ||
| + | | ||
| =====docker external volumes===== | =====docker external volumes===== | ||
| There are 2 type of volume needs in this set up. | There are 2 type of volume needs in this set up. | ||
| Line 208: | Line 184: | ||
| The docker build command to build the image was '' | The docker build command to build the image was '' | ||
| - | The compose.yml file is: | + | I like a constant mac address on my private network. |
| - | < | + | |
| + | ++++The compose.yml file is:| | ||
| + | < | ||
| services: | services: | ||
| deluge: | deluge: | ||
| Line 217: | Line 195: | ||
| stdin_open: true | stdin_open: true | ||
| container_name: | container_name: | ||
| + | | ||
| restart: ' | restart: ' | ||
| + | | ||
| volumes: | volumes: | ||
| - '/ | - '/ | ||
| Line 223: | Line 203: | ||
| - '/ | - '/ | ||
| - '/ | - '/ | ||
| + | | ||
| networks: | networks: | ||
| macnet1: | macnet1: | ||
| ipv4_address: | ipv4_address: | ||
| + | mac_address: | ||
| + | |||
| cap_add: | cap_add: | ||
| - NET_ADMIN | - NET_ADMIN | ||
| + | |||
| command: /bin/sh | command: /bin/sh | ||
| + | |||
| + | devices: | ||
| + | - / | ||
| networks: | networks: | ||
| macnet1: | macnet1: | ||
| external: true</ | external: true</ | ||
| + | ++++ | ||
| + | |||
| Some basic docker compose commands: | Some basic docker compose commands: | ||
| *'' | *'' | ||
| Line 262: | Line 251: | ||
| A list of [[https:// | A list of [[https:// | ||
| + | |||
| + | ====Shell Builtin Commands==== | ||
| + | Many shells have builtin commands that can be listed with the command '' | ||
| + | |||
| + | Some additional related commands: | ||
| + | *'' | ||
| + | *'' | ||
| + | |||
| + | See: | ||
| + | *The Unix School [[https:// | ||
| + | *[[https:// | ||
| =====References===== | =====References===== | ||