[优化]etcd、node-exporter、prometheus的dockerfile部署优化

This commit is contained in:
2024-09-14 14:08:33 +08:00
committed by Coding
parent 9243c4a797
commit 67d027f49f
4 changed files with 68 additions and 25 deletions

View File

@@ -4,13 +4,6 @@ services:
ports:
- 2379:2379
- 2380:2370
confd:
build: docker/confd
depends_on:
- etcd
volumes:
- ./confd:/etc/confd
- ./data:/data
prometheus:
build: docker/prometheus
ports:
@@ -31,5 +24,5 @@ services:
build: docker/node_exporter
opcua-exporter:
build: opcua-exporter
volumes:
- ./data:/data
## volumes:
## - ./data:/data