sigp / lighthouse-metrics

A docker-compose with Grafana + Prometheus for monitoring Lighthouse
145 stars 50 forks source link

network_mode error while trying to setup via docker-compose #13

Open anirudh-chhangani opened 3 years ago

anirudh-chhangani commented 3 years ago

Command

docker-compose up -d

Error

Creating lighthouse-metrics_prometheus_1 ...
ERROR: for lighthouse-metrics_grafana_1  "host" network_mode is incompatible with port_bindings
ERROR: for lighthouse-metrics_prometheus_1  "host" network_mode is incompatible with port_bindings
ERROR: for grafana  "host" network_mode is incompatible with port_bindings
ERROR: for prometheus  "host" network_mode is incompatible with port_bindings```

docker

Client: Docker Engine - Community
 Version:           19.03.13
 API version:       1.40
 Go version:        go1.13.15
 Git commit:        4484c46d9d
 Built:             Wed Sep 16 17:02:55 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.13
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       4484c46d9d
  Built:            Wed Sep 16 17:01:25 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.3.7
  GitCommit:        8fba4e9a7d01810a393d5d25a3621dc101981175
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

docker-compose

docker-compose version 1.27.4, build unknown
docker-py version: 4.4.0
CPython version: 3.7.3
OpenSSL version: OpenSSL 1.1.1d  10 Sep 2019
anirudh-chhangani commented 3 years ago

Note: I was able to setup everything by removing port bindings in docker-compose.yml