From 06ff984786318cccb89034a84db1ff9dbf430747 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 11 Dec 2019 21:38:54 -0800 Subject: [PATCH] set master ip in docker compose yaml file fix https://github.com/chrislusf/seaweedfs/issues/1118 --- docker/dev-compose.yml | 2 +- docker/entrypoint.sh | 2 +- docker/seaweedfs-compose.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/dev-compose.yml b/docker/dev-compose.yml index 0306b3cb0..1f44ff483 100644 --- a/docker/dev-compose.yml +++ b/docker/dev-compose.yml @@ -8,7 +8,7 @@ services: ports: - 9333:9333 - 19333:19333 - command: "master" + command: "master -ip=master" volume: build: context: . diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index c28bd263c..791527d3a 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -3,7 +3,7 @@ case "$1" in 'master') - ARGS="-ip `hostname -i` -mdir /data" + ARGS="-mdir /data" # Is this instance linked with an other master? (Docker commandline "--link master1:master") if [ -n "$MASTER_PORT_9333_TCP_ADDR" ] ; then ARGS="$ARGS -peers=$MASTER_PORT_9333_TCP_ADDR:$MASTER_PORT_9333_TCP_PORT" diff --git a/docker/seaweedfs-compose.yml b/docker/seaweedfs-compose.yml index d66b921bb..7f0cbc6f9 100644 --- a/docker/seaweedfs-compose.yml +++ b/docker/seaweedfs-compose.yml @@ -6,7 +6,7 @@ services: ports: - 9333:9333 - 19333:19333 - command: "master" + command: "master -ip=master" volume: image: chrislusf/seaweedfs # use a remote image ports: