420m / dockyard

A media server configuration to run Plex, Sonarr, Radarr and Transmission in Docker
GNU General Public License v3.0
149 stars 21 forks source link

Etienne/add proxy and plex #1

Closed elafarge closed 5 years ago

elafarge commented 8 years ago

DO NOT MERGE (yet).

Description

This completes the media-server compose set up, adding an URL based reverse proxy in front of it (we could think about using subdomains too. Thanks to Let's Encrypt, having a big bunch of subdomains using SSL isn't a blocker in terms of money any more :) ) and the plex media-server (yeah, I'm not really happy to deploy a closed source software on my machines either...).

The idea is that the whole setup could be spawned on any machine in one command, without dirtying the local environment too much (no additional user, everything's run in containers...). Provided that you deploy your personnal ./conf and ./media (or at least the plex configuration under ./media/plex configurations with the beast, moving your plex server accross environments should also be as easy as 1-2-3.

What's missing

If the setup will be deployed behind another reverse proxy on a pre-existing machine, there's no need to add anything. However, for standalone deployment, I need to add a real SSL support, if possible with an automatic update of the SSL key and Cert using certbot.

hkaj commented 8 years ago

Hey @elafarge Nice PR! I like the fact that it adds a default (and sane) config out of the box for sonarr and couchpotato. I omitted the nginx part because I run a separate nginx that serves as a front for other stuff too, but adding it is fine, let's just add a note about it in the README.

elafarge commented 8 years ago

Hey @hkaj . Good to hear from you.

There's a couple of things I need to fix before this can be merged. On of the main issues is getting Flex to work without having to launch its contaienr with the --net=host flag. Flex seems to rely on the host's AVAHI daemon. There should be a way to have them communicate accordingly but I haven't had time to dig into the issue until now.

I'll try to sort that out beginning of next month ;-)