I’m trying to build a service around streaming high-def/UHD video over a local network with an http server (nginx) as a fancy control panel. Docker is involved, but I don’t quite know whether or not I should build the rtmp server separate from the web server.
I know that they can be built separately in separate containers, but I’m a total docker noob and was wondering what some veterans have to say.
I’m not sure exactly what prerequisite statements need to be here, so please, Ask away, and i’ll attempt to answer them as best I can
Edit 1: Software specs:
Ubuntu 16.04
Kernel 4.15.x
latest release of docker
Thanks in advance!
I’m assuming control panel software needs some socket/shared storage/… in common with whatever you use to stream media… I’d be surprised if whatever you have is developed as a full on microservice with proper RPC APIs (mainly because that would force you to do auth properly and that’s hard, some shared resources are most likely what you’ll need).
Do you have a particular media server/control panel software in mind?
Not so far. I really don’t know what i’m doing. as far as streaming servers, I’m looking at nginx+rtmp addon, (tested successfully!) with just a simple webpage built as an interface, that has the vague general look of a way slimmed down twitch.tv. Very few controls, mostly just for the aesthetics of it.
Are there any prebuilt free open source solutions that you would recommend?
I see, so you’re basically developing a site and using nginx rtmp module for video and asking if you should separate it from your static content.
From a development perspective/home use perspective I don’t think you need to worry about it - do whatever is easier for you.
From a practical deployment perspective for non-home use where there’d be plenty of users, I think it makes sense to separate videos from the app. That’ll allow you to version, deploy, scale the app independently from the video service that has different properties.
I don’t think you need to care about docker during development, just make it work the way you want localy first make your development easy. For example, just write a dumb shell script to launch nginx on 8080 and use paths like $HOME/myproject during development, the dumber the better.