====== Docker - Media Server - Source - sabnzbd ======
===== Dockerfile =====
FROM lsiobase/xenial
MAINTAINER sparklyballs
# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
ENV HOME="/config" \
PYTHONIOENCODING=utf-8
# install packages
RUN \
echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu xenial main" >> /etc/apt/sources.list.d/sabnzbd.list && \
echo "deb-src http://ppa.launchpad.net/jcfp/ppa/ubuntu xenial main" >> /etc/apt/sources.list.d/sabnzbd.list && \
echo "deb http://ppa.launchpad.net/jcfp/sab-addons/ubuntu xenial main" >> /etc/apt/sources.list.d/sabnzbd.list && \
echo "deb-src http://ppa.launchpad.net/jcfp/sab-addons/ubuntu xenial main" >> /etc/apt/sources.list.d/sabnzbd.list && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:11371 --recv-keys 0x98703123E0F52B2BE16D586EF13930B14BB9F05F && \
apt-get update && \
apt-get install -y \
p7zip-full \
par2-tbb \
python-sabyenc \
sabnzbdplus \
unrar \
unzip && \
# cleanup
apt-get clean && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 8080 9090
VOLUME /config /downloads /incomplete-downloads
----
===== Usage =====
Here are some example snippets to help you get started creating a container.
==== docker ====
docker create \
--name=sabnzbd \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/London \
-p 8080:8080 \
-p 9090:9090 \
-v path to data:/config \
-v path to downloads:/downloads \
-v path to incomplete downloads:/incomplete-downloads `#optional` \
--restart unless-stopped \
linuxserver/sabnzbd
==== docker-compose ====
Compatible with docker-compose v2 schemas.
version: "2.1"
services:
sabnzbd:
image: linuxserver/sabnzbd
container_name: sabnzbd
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- path to data:/config
- path to downloads:/downloads
- path to incomplete downloads:/incomplete-downloads #optional
ports:
- 8080:8080
- 9090:9090
restart: unless-stopped
----
===== References =====
https://hub.docker.com/r/linuxserver/sabnzbd