Add explicit IP and binding parameters in Docker Compose (#7533)

fix(compose): correct command args to ensure proper IP binding
This commit is contained in:
Gophlet
2025-11-25 04:36:48 +08:00
committed by GitHub
parent ed6add9046
commit e5d12d926b
2 changed files with 7 additions and 7 deletions

View File

@@ -7,14 +7,14 @@ services:
- 9333:9333 - 9333:9333
- 19333:19333 - 19333:19333
- 9324:9324 - 9324:9324
command: "master -ip=master -ip.bind=0.0.0.0 -metricsPort=9324" command: 'master -ip=master -ip.bind=0.0.0.0 -metricsPort=9324'
volume: volume:
image: chrislusf/seaweedfs # use a remote image image: chrislusf/seaweedfs # use a remote image
ports: ports:
- 8080:8080 - 8080:8080
- 18080:18080 - 18080:18080
- 9325:9325 - 9325:9325
command: 'volume -mserver="master:9333" -ip.bind=0.0.0.0 -port=8080 -metricsPort=9325' command: 'volume -ip=volume -mserver="master:9333" -ip.bind=0.0.0.0 -port=8080 -metricsPort=9325'
depends_on: depends_on:
- master - master
filer: filer:
@@ -23,7 +23,7 @@ services:
- 8888:8888 - 8888:8888
- 18888:18888 - 18888:18888
- 9326:9326 - 9326:9326
command: 'filer -master="master:9333" -ip.bind=0.0.0.0 -metricsPort=9326' command: 'filer -ip=filer -master="master:9333" -ip.bind=0.0.0.0 -metricsPort=9326'
tty: true tty: true
stdin_open: true stdin_open: true
depends_on: depends_on:
@@ -54,6 +54,6 @@ services:
- 9000:9090 - 9000:9090
volumes: volumes:
- ./prometheus:/etc/prometheus - ./prometheus:/etc/prometheus
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml command: '--web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml'
depends_on: depends_on:
- s3 - s3

View File

@@ -6,13 +6,13 @@ services:
ports: ports:
- 9333:9333 - 9333:9333
- 19333:19333 - 19333:19333
command: "master -ip=master" command: 'master -ip=master -ip.bind=0.0.0.0'
volume: volume:
image: chrislusf/seaweedfs:dev # use a remote dev image image: chrislusf/seaweedfs:dev # use a remote dev image
ports: ports:
- 8080:8080 - 8080:8080
- 18080:18080 - 18080:18080
command: 'volume -mserver="master:9333" -port=8080 -ip=volume' command: 'volume -ip=volume -mserver="master:9333" -ip.bind=0.0.0.0 -port=8080'
depends_on: depends_on:
- master - master
filer: filer:
@@ -20,7 +20,7 @@ services:
ports: ports:
- 8888:8888 - 8888:8888
- 18888:18888 - 18888:18888
command: 'filer -master="master:9333" -ip.bind=0.0.0.0' command: 'filer -ip=filer -master="master:9333" -ip.bind=0.0.0.0'
depends_on: depends_on:
- master - master
- volume - volume