Docker image dedicated to ARMv7 processors, hosting a Medusa server with WebUI.
This project is based on existing projects, combined and modified to work on ARMv7 WD My Cloud EX2 Ultra NAS.
See GitHub repositories:
- https://github.com/edv/docker-sickrage
- https://github.com/haugene/docker-transmission-openvpn
This image is part of a Docker images collection, intended to build a full-featured seedbox, and compatible with WD My Cloud EX2 Ultra NAS (Docker v1.7.0):
Before running container, you have to retrieve UID and GID for the user used to mount your tv shows directory:
- Get user UID:
$ id -u <user>
- Get user GID:
$ id -g <user>
The container will run impersonated as this user, in order to have read/write access to the tv shows directory.
$ docker run --name medusa --restart=always \
--add-host=dockerhost:<docker host IP> \
--dns=<ip of dns #1> --dns=<ip of dns #2> \
-d \
-p <webui port>:8081 \
-v <path to Medusa configuration dir>:/config \
-v <path to Medusa data dir>:/data \
-v <path to tv shows dir>:/tvshowsdir \
-v <path to downloaded files to process>:/postprocessingdir \
-v /etc/localtime:/etc/localtime:ro \
-e "AUTO_UPDATE=<auto update Medusa at first start [true/false]>"
-e "TORRENT_MODE=<transmission or qbittorrent>" \
-e "TORRENT_PORT=<port of the torrent client>" \
-e "TORRENT_LABEL=<label to use for Medusa in torrent client>" \
-e "PROXY_PORT=<squid3 proxy port to use (leave empty to disable)>" \
-e "PUID=<user uid>" \
-e "PGID=<user gid>" \
ahuh/arm-medusa
or
$ ./docker-run.sh medusa ahuh/arm-medusa
(set parameters in docker-run.sh
before launch)
The container will use volumes directories to manage tv shows files, to retrieve downloaded files, and to store data and configuration files.
You have to create these volume directories with the PUID/PGID user permissions, before launching the container:
/tvshowsdir
/postprocessingdir
/config
/data
The container will automatically create a config.ini
file in the Medusa configuration dir (only if none was present before).
- The following parameters will be automatically modified at launch for compatibility with the Docker container:
[General]
...
root_dirs = 0|/tvshowsdir
tv_download_dir = /postprocessingdir
unrar_tool = unrar
- Depending on the torrent client Docker container selected (transmission or qbittorrent), these parameters will be automatically modified at launch:
[General]
...
use_torrents = 1
torrent_method = ${TORRENT_MODE}
process_automatically = 1
handle_reverse_proxy = 1
...
[TORRENT]
...
torrent_auth_type = none
torrent_host = http://torrent:${TORRENT_PORT}/
torrent_path = /downloaddir/${TORRENT_LABEL}
- If a
PROXY_PORT
var is specified, the squid3 hosted on the Docker ARM TranSquidVpn container will be used for searches and indexers in Medusa. These parameters will be automatically modified at launch:
[General]
...
proxy_setting = http://dockerhost:${PROXY_PORT}
proxy_indexers = 1
- If you use qBittorrent as torrent client, you have to access the search settings in Medusa WebUI, and input the username / password for authentication.
If you modified the config.ini
file, restart the container to reload Medusa configuration:
$ docker stop medusa
$ docker start medusa
- At the first start of the container, Medusa will automatically be updated from GitHub.
Use this command instead of docker attach
if you want to interact with the container while it's running:
$ docker exec -it medusa /bin/bash
or
$ ./docker-bash.sh medusa
$ docker build -t arm-medusa .
or
$ ./docker-build.sh arm-medusa