swarm-grafana: run in its own network namespace
This commit is contained in:
parent
5fe71fd056
commit
08f010b742
3 changed files with 55 additions and 23 deletions
|
|
@ -164,6 +164,12 @@ reads it, in two containers at `metrics.<swarm-domain>` and
|
|||
`grafana.<swarm-domain>`. Two containers rather than one so you can
|
||||
restart or break Grafana without taking the time-series database with it.
|
||||
|
||||
The Grafana container sits on the hive bridge in a network namespace of its
|
||||
own and dials authelia, the secret store, the collector and both datasources
|
||||
by name through it. It binds no TCP port: it listens on the unix socket
|
||||
`/run/swarm-grafana/grafana.sock`, a directory only the gateway's nginx and
|
||||
the container can open.
|
||||
|
||||
They derive together: a store with no UI is unreadable and a UI with no
|
||||
store is empty. To run one without the other, set it directly:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue