version: '3.4'
services:
kafka_exporter:
image: danielqsj/kafka-exporter
command: --kafka.server=xx.xx.xx.xx:9092 --kafka.server=xx.xx.xx.xx:9092
ports:
- 9308:9308
links:
- prometheus
prometheus:
image: prom/prometheus
ports:
- 9090:9090
volumes:
- ./mount/prometheus:/etc/prometheus
command: --config.file=/etc/prometheus/prometheus.yml上面是我的docker-compose.yml文件。我能把这两个图像都旋转起来。
然而,我无法从(kafka_Exporter) (普罗米修斯)访问localhost:9308 localhost:9090。
我需要链接/网络图像吗?
发布于 2018-08-29 10:26:41
应该是container_name:port
kafka_exporter:9308https://stackoverflow.com/questions/52073090
复制相似问题