Add couchpotato

This commit is contained in:
Jean Froment 2017-08-12 17:15:43 +02:00
parent efd7b2d0c0
commit ace6d79d0f
8 changed files with 52 additions and 7 deletions

View File

View File

@ -0,0 +1,12 @@
#!/usr/bin/with-contenv bash
# create folders
mkdir -p \
/var/log/couchpotato
# permissions
chown -R abc:abc \
/app
chmod 777 \
/var/log/couchpotato

View File

@ -0,0 +1,8 @@
#!/usr/bin/with-contenv bash
UMASK_SET=${UMASK_SET:-022}
umask "$UMASK_SET"
exec \
s6-setuidgid abc python /app/couchpotato/CouchPotato.py \
--config_file=/config/config.ini --data_dir=/config/data

View File

@ -87,6 +87,17 @@ http {
proxy_pass $sonarr;
}
}
server {
include common.conf;
server_name ~^(couchpotato)(\.\w+)+$;
location / {
set $sonarr http://couchpotato:5050;
proxy_pass $sonarr;
}
}
}
# vim: ft=nginx

View File

@ -13,6 +13,7 @@ Included services are:
- jackett (included in the sonarr image)
- plex
- h5ai (service accessible via `explore.hostname`)
- couchpotato
The front-end reverse proxy routes based on the lowest level subdomain (e.g.
`deluge.example.com` would route to deluge). Since this is how the router

View File

@ -24,9 +24,9 @@ done
docker build -t fromenje/seedbox:frontend $ARGS Dockerfiles/frontend &
docker build -t fromenje/seedbox:plex $ARGS Dockerfiles/plex &
docker build -t fromenje/seedbox:rtorrent $ARGS Dockerfiles/rtorrent &
docker build -t fromenje/seedbox:deluge $ARGS Dockerfiles/deluge &
docker build -t fromenje/seedbox:sonarr $ARGS Dockerfiles/sonarr &
docker build -t fromenje/seedbox:h5ai $ARGS Dockerfiles/h5ai &
docker build -t fromenje/seedbox:couchpotato $ARGS Dockerfiles/couchpotato &
wait

View File

@ -75,3 +75,16 @@ services:
volumes:
- config:/config
- torrents:/torrents
couchpotato:
image: fromenje/seedbox:couchpotato
build: Dockerfiles/couchpotato
restart: always
networks:
- main
volumes:
- config:/config
- torrents/deluge:/downloads
- torrents/Movies:/movies
env_file:
- config

View File

@ -4,7 +4,7 @@
docker push fromenje/seedbox:frontend
docker push fromenje/seedbox:plex
docker push fromenje/seedbox:rtorrent
docker push fromenje/seedbox:sonarr
docker push fromenje/seedbox:deluge
docker push fromenje/seedbox:h5ai
docker push fromenje/seedbox:couchpotato