MAN­AG­ING MUL­TI­PLE CON­TAIN­ERS

Maximum PC - - THE ULTIMATE SERVER -

Even­tu­ally, you’re go­ing to find your server lack­ing ports. Pi­hole, for ex­am­ple, re­ally needs to take con­trol of port 80, be­cause your HTTP traf­fic is routed through it—but what if an­other con­tainer also needs to use port 80? It’s pos­si­ble, as we’ve seen, to remap those ports in your dock­er­com­pose.yml, piping port 80 from the con­tainer to any other free port on the host, but that’s much more awk­ward than it needs to be when you’re con­nect­ing to your server from else­where. Com­bin­ing a lit­tle DNS man­age­ment with a re­verse proxy (we’re par­tial to ng­inx-proxy) means all re­quests to your server are col­lected and rerouted to the ap­pro­pri­ate con­tainer based on the host­name used; plex.max­i­mumpc. lo­cal, for ex­am­ple, might take you to your Plex server with­out the need to re­mem­ber which port it’s liv­ing on. Ng­inx can also take charge of load balanc­ing and traf­fic man­age­ment be­tween your server con­tain­ers—check out https://github.com/ jwilder/ng­inx-proxy for in­for­ma­tion on get­ting it run­ning, and look at in­stalling dns­masq ( https://hub.docker. com/r/strm/dns­masq/) within a con­tainer to deal with lo­cal DNS remap­ping.

Although Ng­inx (pro­nounced “En­gine X,” as we were told af­ter say­ing “Nn gincks” a few too many times) can deal with load balanc­ing, and our con­tainer­ized server should the­o­ret­i­cally be able to dole out its re­sources sen­si­bly, a lit­tle mon­i­tor­ing layer is a great choice to see just where that load is go­ing. Grab the im­age tit­pet­ric/net­data and get that run­ning. Net­data pro­vides not only insight into the move­ments of your var­i­ous con­tain­ers, but of­fers up an ab­so­lutely live and ex­tremely well-ex­plained look at the deeper as­pects of your server hard­ware. If some­thing’s not work­ing as it should—or even if you have a mi­nor driver is­sue—you’ll know about it first.

Net­data’s live graphs and alerts give a to­tal pic­ture of your server’s health.

Newspapers in English

Newspapers from Australia

© PressReader. All rights reserved.