Sickbear, Sabnzbd, Openvpn container stack

Dockerfiles and docker-compose yml ...

Files

Openvpn

Things I had to change to my basic openvpn.conf to get this to work:

  • Add an up script to change the DNS and add a route.

up.sh

#!/bin/bash
echo "nameserver 208.67.222.222" > /etc/resolv.conf
echo "nameserver 208.67.220.220" >> /etc/resolv.conf
/usr/sbin/ip route add 192.168.1.0/24 via 172.17.42.1 dev eth0

Openvpn Dockerfile

FROM fedora:22
MAINTAINER zews@zews.org

RUN     dnf clean all
RUN     dnf -y update && dnf -y install openvpn busybox

VOLUME ["/config"]

WORKDIR /config

CMD ["openvpn", "--config", "/config/openvpn.conf"]

Sickbeard Dockerfile

FROM fedora:22
MAINTAINER zews@zews.org

ENV SICKBEARD_VERSION master

RUN     dnf clean all
RUN     dnf -y update && dnf -y install git python-cheetah
UN     git clone git://github.com/midgetspy/Sick-Beard.git sickbeard

VOLUME ["/config"]

CMD ["python", "/sickbeard/SickBeard.py", "--datadir=/config"]

Sabnzbd Dockerfile

FROM fedora:22
MAINTAINER zews@zews.org

RUN     dnf clean all
RUN     dnf -y  install --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
RUN     dnf -y update
RUN     dnf -y install unrar par2cmdline unzip p7zip p7zip-plugins
RUN     dnf -y install python python-cheetah python-configobj python-feedparser python-dbus pyOpenSSL python-yenc git
RUN     git clone git://github.com/sabnzbd/sabnzbd.git sabnzbd

VOLUME ["/config","/movies","/tv"]

CMD ["python", "-OO", "/sabnzbd/SABnzbd.py", "--config-file", "/config"]

docker-compose

openvpn:
  image: zews/openvpn
  privileged: true
  ports:
    - "8080:8080"
    - "8081:8081"
  volumes:
    - /srv/docker_data/openvpn:/config
sabnzbd:
  image: zews/sabnzbd
  net: container:openvpn
  volumes:
    - /srv/docker_data/sabnzbd:/config
    - /srv/tv:/tv
    - /srv/movies:/movies
sickbeard:
  image: zews/sickbeard
  net: container:openvpn
  volumes:
    - /srv/docker_data/sickbeard:/config