Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| docker_notes:docker-deluge [2023-05-28 Sun wk21 17:35] – [s6 supervision rc system] 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 have blocked | + | I want a torrent service that uses a VPN and is set-up to block non VPN WAN (internet) access. |
| - | =====s6 supervision rc system===== | + | I have been successfully been running |
| - | I decided to build this container | + | |
| - | S6 [[https:// | ||
| - | ++++Basic S6 commands:| | ||
| - | |||
| - | *'' | ||
| - | *'' | ||
| - | *'' | ||
| - | *'' | ||
| - | *'' | ||
| - | *'' | ||
| - | *'' | ||
| - | *'' | ||
| - | |||
| - | BTW dont spell dependencies as dependancies and wonder why things don't work, lol the English language sucks. | ||
| - | ++++ | ||
| - | |||
| - | |||
| - | Reference: | ||
| - | *[[https:// | ||
| - | *[[https:// | ||
| - | *[[https:// | ||
| - | Easy to follow Beginner Guide on s6 Starter Pack ]] | ||
| - | ---- | ||
| - | Other Supervisor software discussions: | ||
| - | *[[https:// | ||
| - | *supervisord: | ||
| =====dockerfile===== | =====dockerfile===== | ||
| ++++Dockerfile| | ++++Dockerfile| | ||
| Line 106: | 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 114: | Line 88: | ||
| chmod 660 / | chmod 660 / | ||
| - | echo "nameserver 192.168.1.1" > /etc/resolv.conf | + | echo "103.231.89.219 au-mel.pvdata.host" |
| + | echo " | ||
| + | echo " | ||
| + | echo " | ||
| + | |||
| + | / | ||
| </ | </ | ||
| *Inside container command to run ''/ | *Inside container command to run ''/ | ||
| Line 123: | 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 176: | Line 164: | ||
| =====Docker network===== | =====Docker network===== | ||
| - | As described | + | As described |
| <code bash> | <code bash> | ||
| docker network create -d macvlan | docker network create -d macvlan | ||
| Line 196: | 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 205: | Line 195: | ||
| stdin_open: true | stdin_open: true | ||
| container_name: | container_name: | ||
| + | | ||
| restart: ' | restart: ' | ||
| + | | ||
| volumes: | volumes: | ||
| - '/ | - '/ | ||
| Line 211: | 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 250: | 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===== | ||
| Line 271: | Line 283: | ||
| - | <- docker_notes: | + | <- docker_notes: |