integrate docker for gateway, prometheus and grafana #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master_docker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#3


master_dockerto WIP: master_dockerWIP: master_dockerto WIP: integrate docker for gateway, prometheus and grafanaWIP: integrate docker for gateway, prometheus and grafanato integrate docker for gateway, prometheus and grafanawe should have another docker-compose.development.yml for adding step-ca and extra caddy config to work with step-ca
@ -52,0 +54,4 @@prometheus-data/grafana-data/gateway.dbstep/this causes issues because if step/ dir doesn't exist docker will create it as root (on some systems) and step-ca won't work. step dir already has .gitignore for all files under step/* so it's not needed
@ -52,0 +55,4 @@grafana-data/gateway.dbstep/test_keys/this is already added before
@ -130,6 +130,7 @@ func (m *Mycelium) LoadConfig(ctx caddy.Context) ([]byte, error) {var persist = truecfg := &caddy.Config{Admin: &caddy.AdminConfig{Listen: ":2019",this is added automatically, right? also it should be only on localhost
@ -0,0 +1,214 @@package mainwe don't need an executable to have a pre configured grafana image. dashboards, alerts, datasources, etc... are all configured with json/yaml files which we can have as part of a dir grafana/ and added to grafana image directly. check out this for example:
https://github.com/vilaca/prometheus-cookbook/tree/main/ha-with-promxy
this was mainly to create the new dashboard for the gateway instead of writing a json file to be more clear, but np can remove it
@ -0,0 +8,4 @@volumes:- ./caddy.json:/app/caddy.json- ./test_keys:/app/test_keys:ro- ./step:/app/step:rothis is not needed. or at least not needed in this docker-compose
@ -0,0 +9,4 @@- ./caddy.json:/app/caddy.json- ./test_keys:/app/test_keys:ro- ./step:/app/step:ro- ./gateway.db:/app/gateway.dbif it doesn't exist it will be created as a dir which will cause some issues. maybe it should be under a dir called data/ which can be mounted instead
@ -0,0 +15,4 @@prometheus:image: prom/prometheus:latestextra_hosts:- "host.docker.internal:host-gateway"why is that needed?
8c3b943173e5219cc937