Add Jackett support
Add jackett to the sonarr image. Adjust the reverse proxy to route the jackett subdomain
This commit is contained in:
		
							parent
							
								
									2d8129865f
								
							
						
					
					
						commit
						33817a2ab7
					
				|  | @ -20,4 +20,4 @@ if $USE_SSL ; then | ||||||
|     fi |     fi | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| nginx -g "daemon off;" | exec nginx -g "daemon off;" | ||||||
|  |  | ||||||
|  | @ -86,6 +86,16 @@ http { | ||||||
|             proxy_pass $sonarr; |             proxy_pass $sonarr; | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|  |     server { | ||||||
|  |         include common.conf; | ||||||
|  |         server_name ~^(jackett)(\.\w+)+$; | ||||||
|  | 
 | ||||||
|  |         location / { | ||||||
|  |             set $sonarr http://sonarr:9117; | ||||||
|  |             proxy_pass $sonarr; | ||||||
|  |         } | ||||||
|  |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| # vim: ft=nginx | # vim: ft=nginx | ||||||
|  |  | ||||||
|  | @ -1,18 +1,26 @@ | ||||||
| FROM buildpack-deps:xenial-scm | FROM buildpack-deps:xenial-scm | ||||||
| MAINTAINER Kelvin Chen <kelvin@kelvinchen.org> | MAINTAINER Kelvin Chen <kelvin@kelvinchen.org> | ||||||
| 
 | 
 | ||||||
| # Install Sonarr | # Install Sonarr, S6, and Jackett | ||||||
| RUN echo "deb http://apt.sonarr.tv/ master main" \ | RUN echo "deb http://apt.sonarr.tv/ master main" \ | ||||||
|         > /etc/apt/sources.list.d/sonarr.list \ |         > /etc/apt/sources.list.d/sonarr.list \ | ||||||
|     && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC \ |     && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC \ | ||||||
|     && apt-get update \ |     && apt-get update \ | ||||||
|     && apt-get install -y nzbdrone \ |     && apt-get install -y nzbdrone libcurl4-openssl-dev \ | ||||||
|  |     && curl -sL "https://github.com/just-containers/s6-overlay/releases/download/v1.18.1.5/s6-overlay-amd64.tar.gz" \ | ||||||
|  |         | tar xz -C / \ | ||||||
|  |     && curl -sL "https://github.com/Jackett/Jackett/releases/download/v0.7.420/Jackett.Binaries.Mono.tar.gz" \ | ||||||
|  |         | tar xz -C /opt \ | ||||||
|     && apt-get clean && rm -rf /var/lib/apt/lists/* |     && apt-get clean && rm -rf /var/lib/apt/lists/* | ||||||
| 
 | 
 | ||||||
|  | # Set Jackett config path | ||||||
|  | ENV XDG_DATA_HOME="/config" \ | ||||||
|  |     XDG_CONFIG_HOME="/config" | ||||||
|  | 
 | ||||||
| VOLUME /config | VOLUME /config | ||||||
| 
 | 
 | ||||||
| EXPOSE 8989 | EXPOSE 8989 9117 | ||||||
| 
 | 
 | ||||||
| COPY init / | COPY services.d /etc/services.d | ||||||
| 
 | 
 | ||||||
| CMD ["/init"] | CMD ["/init"] | ||||||
|  |  | ||||||
|  | @ -0,0 +1,3 @@ | ||||||
|  | #!/usr/bin/with-contenv sh | ||||||
|  | 
 | ||||||
|  | exec mono /opt/Jackett/JackettConsole.exe | ||||||
|  | @ -0,0 +1,7 @@ | ||||||
|  | #!/usr/bin/with-contenv sh | ||||||
|  | 
 | ||||||
|  | mkdir -p /config/sonarr | ||||||
|  | 
 | ||||||
|  | rm -f /config/sonarr/nzbdrone.pid | ||||||
|  | 
 | ||||||
|  | exec mono /opt/NzbDrone/NzbDrone.exe -nobrowser -data=/config/sonarr | ||||||
		Loading…
	
		Reference in New Issue