Add h5ai
This commit is contained in:
parent
83fc195c05
commit
cf62b213dc
|
@ -57,6 +57,16 @@ http {
|
|||
}
|
||||
}
|
||||
|
||||
server {
|
||||
include common.conf;
|
||||
server_name ~^(explore)(\.\w+)+$;
|
||||
|
||||
location / {
|
||||
set $h5ai http://h5ai:12333;
|
||||
proxy_pass $h5ai;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
include common.conf;
|
||||
server_name ~^(plex)(\.\w+)+$;
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
FROM ubuntu:14.04
|
||||
MAINTAINER Jean Froment <froment.je@gmail.com>
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
ENV H5AI_VERSION 0.29.0
|
||||
ENV HTTPD_USER www-data
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
nginx php5-fpm supervisor \
|
||||
wget unzip patch acl \
|
||||
libav-tools imagemagick \
|
||||
graphicsmagick zip unzip php5-gd
|
||||
|
||||
# install h5ai and patch configuration
|
||||
RUN wget http://release.larsjung.de/h5ai/h5ai-$H5AI_VERSION.zip
|
||||
RUN unzip h5ai-$H5AI_VERSION.zip -d /usr/share/h5ai
|
||||
|
||||
# patch h5ai because we want to deploy it ouside of the document root and use /var/www as root for browsing
|
||||
COPY class-setup.php.patch class-setup.php.patch
|
||||
RUN patch -p1 -u -d /usr/share/h5ai/_h5ai/private/php/core/ -i /class-setup.php.patch && rm class-setup.php.patch
|
||||
|
||||
RUN rm /etc/nginx/sites-enabled/default
|
||||
|
||||
#make the cache writable
|
||||
RUN chown ${HTTPD_USER} /usr/share/h5ai/_h5ai/public/cache/
|
||||
RUN chown ${HTTPD_USER} /usr/share/h5ai/_h5ai/private/cache/
|
||||
|
||||
# use supervisor to monitor all services
|
||||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
CMD supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
||||
|
||||
# expose only nginx HTTP port
|
||||
EXPOSE 12333
|
|
@ -6,9 +6,11 @@ seedbox and personal media server.
|
|||
Go to `x.hostname` where `x` is the service you want to access.
|
||||
Included services are:
|
||||
- rtorrent
|
||||
- deluge (supposed to replace rtorrent someday, seems to be more compatible with sonarr)
|
||||
- sonarr
|
||||
- jackett (included in the sonarr image)
|
||||
- plex
|
||||
- h5ai
|
||||
|
||||
The front-end reverse proxy routes based on the lowest level subdomain (e.g.
|
||||
`rtorrent.example.com` would route to rtorrent). Since this is how the router
|
||||
|
|
|
@ -27,5 +27,6 @@ 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 &
|
||||
|
||||
wait
|
||||
|
|
|
@ -53,6 +53,20 @@ services:
|
|||
env_file:
|
||||
- config
|
||||
|
||||
h5ai:
|
||||
image: fromenje/seedbox:h5ai
|
||||
build: Dockerfiles/h5ai
|
||||
restart: always
|
||||
networks:
|
||||
- main
|
||||
ports:
|
||||
- "12333:12333"
|
||||
volumes:
|
||||
- torrents:/var/www
|
||||
- config:/config
|
||||
env_file:
|
||||
- config
|
||||
|
||||
plex:
|
||||
image: fromenje/seedbox:plex
|
||||
build: Dockerfiles/plex
|
||||
|
|
|
@ -6,3 +6,5 @@ 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
|
||||
|
|
Loading…
Reference in New Issue