diff --git a/Dockerfile b/Dockerfile index fb25a1d..714aa75 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ ENV SHELL=/bin/bash \ RUN mkdir -p /bin/ /config/ /data/ && \ rm -Rf /bin/.gitkeep /config/.gitkeep /data/.gitkeep && \ - apk update -U --no-cache + apk update -U --no-cache transmission-daemon COPY ./bin/. /usr/local/bin/ COPY ./config/. /config/ @@ -50,4 +50,3 @@ COPY --from=build /. / ENTRYPOINT [ "tini", "--" ] HEALTHCHECK CMD [ "/usr/local/bin/entrypoint-transmission.sh", "healthcheck" ] CMD [ "/usr/local/bin/entrypoint-transmission.sh" ] - diff --git a/bin/entrypoint-transmission.sh b/bin/entrypoint-transmission.sh index 2bac57f..caf8057 100755 --- a/bin/entrypoint-transmission.sh +++ b/bin/entrypoint-transmission.sh @@ -9,11 +9,11 @@ # @@Copyright : Copyright: (c) 2022 Jason Hempstead, Casjays Developments # @@Created : Monday, Sep 26, 2022 13:31 EDT # @@File : entrypoint-transmission.sh -# @@Description : +# @@Description : # @@Changelog : New script # @@TODO : Better documentation -# @@Other : -# @@Resource : +# @@Other : +# @@Resource : # @@Terminal App : no # @@sudo/root : no # @@Template : other/docker-entrypoint @@ -119,7 +119,7 @@ healthcheck) # Docker healthcheck *) # Execute primary command if [ $# -eq 0 ]; then - __exec_bash "/bin/bash" + transmission-daemon else __exec_bash "/bin/bash" fi diff --git a/config/transmission.conf b/config/transmission.conf new file mode 100644 index 0000000..9483424 --- /dev/null +++ b/config/transmission.conf @@ -0,0 +1,97 @@ +{ + "alt-speed-down": 100, + "alt-speed-enabled": false, + "alt-speed-time-begin": 540, + "alt-speed-time-day": 127, + "alt-speed-time-enabled": false, + "alt-speed-time-end": 1020, + "alt-speed-up": 0, + "bind-address-ipv4": "0.0.0.0", + "bind-address-ipv6": "::", + "blocklist-enabled": true, + "blocklist-updates-enabled": true, + "blocklist-url": "https://raw.githubusercontent.com/casjay/public/main/biglist.p2p.gz", + "cache-size-mb": 4, + "compact-view": false, + "dht-enabled": true, + "download-dir": "/data/Torrents/Complete", + "download-queue-enabled": true, + "download-queue-size": 3, + "encryption": 1, + "idle-seeding-limit": 1, + "idle-seeding-limit-enabled": false, + "incomplete-dir": "/data/Torrents/InComplete", + "incomplete-dir-enabled": true, + "inhibit-desktop-hibernation": false, + "lpd-enabled": true, + "main-window-height": 500, + "main-window-is-maximized": 0, + "main-window-width": 554, + "main-window-x": 19, + "main-window-y": 13, + "message-level": 1, + "open-dialog-dir": "data", + "peer-congestion-algorithm": "", + "peer-id-ttl-hours": 6, + "peer-limit-global": 500, + "peer-limit-per-torrent": 500, + "peer-port": 51413, + "peer-port-random-high": 65535, + "peer-port-random-low": 49152, + "peer-port-random-on-start": false, + "peer-socket-tos": "default", + "pex-enabled": true, + "pidfile": "/tmp/transmission-daemon.pid", + "port-forwarding-enabled": false, + "preallocation": 1, + "prefetch-enabled": true, + "queue-stalled-enabled": true, + "queue-stalled-minutes": 30, + "ratio-limit": 0, + "ratio-limit-enabled": true, + "rename-partial-files": true, + "rpc-authentication-required": false, + "rpc-bind-address": "0.0.0.0", + "rpc-enabled": true, + "rpc-host-whitelist": "", + "rpc-host-whitelist-enabled": false, + "rpc-password": "", + "rpc-port": 9091, + "rpc-url": "/transmission/", + "rpc-username": "", + "rpc-whitelist": "127.*.*.*,10.*.*.*,172.16.*.*,192.168.*.*", + "rpc-whitelist-enabled": false, + "scrape-paused-torrents-enabled": true, + "script-torrent-done-enabled": false, + "script-torrent-done-filename": "", + "seed-queue-enabled": false, + "seed-queue-size": 10, + "show-backup-trackers": false, + "show-extra-peer-details": false, + "show-filterbar": true, + "show-notification-area-icon": true, + "show-options-window": true, + "show-statusbar": true, + "show-toolbar": true, + "show-tracker-scrapes": false, + "sort-mode": "sort-by-name", + "sort-reversed": false, + "speed-limit-down": 0, + "speed-limit-down-enabled": false, + "speed-limit-up": 0, + "speed-limit-up-enabled": true, + "start-added-torrents": true, + "statusbar-stats": "total-ratio", + "torrent-added-notification-enabled": true, + "torrent-complete-notification-enabled": true, + "torrent-complete-sound-command": "canberra-gtk-play -i complete-download -d 'transmission torrent downloaded'", + "torrent-complete-sound-enabled": true, + "trash-can-enabled": true, + "trash-original-torrent-files": false, + "umask": 2, + "upload-slots-per-torrent": 14, + "user-has-given-informed-consent": true, + "utp-enabled": true, + "watch-dir": "/data/Torrents/torrents", + "watch-dir-enabled": true +}