An open API service indexing awesome lists of open source software.

https://github.com/ahuh/docker-arm-nginx

Docker image (ARMv7) hosting a NGINX server to secure SickRage, Transmission and qBittorrent
https://github.com/ahuh/docker-arm-nginx

arm bittorrent-client docker dockerfile nginx qbittorrent sickrage transmission

Last synced: about 1 month ago
JSON representation

Docker image (ARMv7) hosting a NGINX server to secure SickRage, Transmission and qBittorrent

Awesome Lists containing this project

README

        

# Docker ARM NGINX
Docker image (ARMv7) hosting a NGINX server to secure SickChill, Transmission, qBittorrent and Jackett. For each application, an HTTPS proxy is provided, with basic authentication (login / password).



This project is based on an existing project, modified to work on ARMv7 WD My Cloud EX2 Ultra NAS.

See GitHub repository: 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):

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 SickChill, 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
```
* Get user GID:
```
$ id -g
```
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 nginx --restart=always \
--add-host=dockerhost: \
--dns= --dns= \
-d \
-p :44481 \
-p :44482 \
-p :44483 \
-p :44491 \
-v :/config \
-v :/logdir \
-v :/ssldir \
-v /etc/localtime:/etc/localtime:ro \
-e "AUTHENTICATION_LOGIN=" \
-e "AUTHENTICATION_PASSWORD=" \
-e "SICKCHILL_PORT=" \
-e "QBITTORRENT_PORT=" \
-e "JACKETT_PORT=" \
-e "TRANSMISSION_PORT=" \
-e "SSL_CERT_FILE=" \
-e "SSL_KEY_FILE=" \
-e "PUID=" \
-e "PGID=" \
ahuh/arm-nginx
```
or
```
$ ./docker-run.sh nginx ahuh/arm-nginx
```
(set parameters in `docker-run.sh` before launch, and generate a `docker-params.sh` to store secret OpenVPN parameters, as described in `docker-run.sh`)

### Configure NGINX
The container will use volumes directories to access SSL certificates, and to store logs and configuration files.



You have to create these volume directories with the PUID/PGID user permissions, before launching the container:
```
/config
/logdir
/ssldir
```

The container will automatically create a `nginx.conf` file in the NGINX configuration dir.

* WARNING : the `nginx.conf` file will be overwritten automatically at each start. Do not modify it: change parameters in `docker-run.sh` and `docker-params.sh` instead, and recreate the container.
* You have to generate a pair of SSL certificate files (.crt and .key) and store them in the `/ssldir` dir before starting the container.

## 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 nginx /bin/bash
```
or
```
$ ./docker-bash.sh nginx
```

### Build image
```
$ docker build -t arm-nginx .
```
or
```
$ ./docker-build.sh arm-nginx
```