[修改]修改网络模式为host,调整了各个服务的网络地址

This commit is contained in:
makotocc0107
2024-09-26 11:04:26 +08:00
committed by Coding
parent eb3f49f00f
commit 491b2265d2
8 changed files with 14 additions and 11 deletions

View File

@@ -4,12 +4,14 @@ services:
ports:
- 2379:2379
- 2380:2370
network_mode: host
prometheus:
build: docker/prometheus
ports:
- 9090:9090
depends_on:
- node-exporter
network_mode: host
panel:
build: management-panel
# volumes:
@@ -31,4 +33,5 @@ services:
volumes:
- '/:/host:ro'
opcua-exporter:
build: opcua-exporter
build: opcua-exporter
network_mode: host