Skip to content

ahuh/docker-arm-medusa

Repository files navigation

Docker ARM Medusa

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:


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):
Docker Image GitHub repository Docker Hub repository
Docker image (ARMv7) hosting a Transmission torrent client with WebUI while connecting to OpenVPN https://github.com/ahuh/docker-arm-transquidvpn https://hub.docker.com/r/ahuh/arm-transquidvpn
Docker image (ARMv7) hosting a qBittorrent client with WebUI while connecting to OpenVPN https://github.com/ahuh/docker-arm-qbittorrentvpn https://hub.docker.com/r/ahuh/arm-qbittorrentvpn
Docker image (ARMv7) hosting SubZero with MKVMerge (subtitle autodownloader for TV shows) https://github.com/ahuh/docker-arm-subzero https://hub.docker.com/r/ahuh/arm-subzero
Docker image (ARMv7) hosting a SickChill server with WebUI https://github.com/ahuh/docker-arm-sickchill https://hub.docker.com/r/ahuh/arm-sickchill
Docker image (ARMv7) hosting a Medusa server with WebUI https://github.com/ahuh/docker-arm-medusa https://hub.docker.com/r/ahuh/arm-medusa
Docker image (ARMv7) hosting a Jackett server with WebUI https://github.com/ahuh/docker-arm-jackett https://hub.docker.com/r/ahuh/arm-jackett
Docker image (ARMv7) hosting a NGINX server to secure Medusa, Transmission and qBittorrent https://github.com/ahuh/docker-arm-nginx https://hub.docker.com/r/ahuh/arm-nginx

Installation

Preparation

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.

Run container in background

$ 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)

Configure Medusa

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.

HOW-TOs

Get a new instance of bash in running container

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

Build image

$ docker build -t arm-medusa .

or

$ ./docker-build.sh arm-medusa

About

Docker image (ARMv7) hosting a Medusa server with WebUI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published