aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-12-27 14:01:47 -0800
committerChris Lu <chris.lu@gmail.com>2018-12-27 14:01:47 -0800
commit3cb23336793de73ae9c114e5e6a1c1f4df0125db (patch)
tree3331eb9f4645777d3a55180a894ffd16e03c7d3d
parent2a19511ba848913402b77c2f120ef583b7530a79 (diff)
downloadseaweedfs-3cb23336793de73ae9c114e5e6a1c1f4df0125db.tar.xz
seaweedfs-3cb23336793de73ae9c114e5e6a1c1f4df0125db.zip
separate docker-compose.yml into local and remote images
-rw-r--r--docker/docker-compose.yml12
-rw-r--r--docker/local-compose.yml54
2 files changed, 58 insertions, 8 deletions
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index 2c3679885..054f0faa6 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -2,8 +2,7 @@ version: '2'
services:
master:
- #image: chrislusf/seaweedfs # use a remote image
- build: . # build our container from the local Dockerfile
+ image: chrislusf/seaweedfs # use a remote image
ports:
- 9333:9333
command: "master"
@@ -12,8 +11,7 @@ services:
aliases:
- seaweed_master
volume:
- #image: chrislusf/seaweedfs # use a remote image
- build: . # build our container from the local Dockerfile
+ image: chrislusf/seaweedfs # use a remote image
ports:
- 8080:8080
- 18080:18080
@@ -25,8 +23,7 @@ services:
aliases:
- seaweed_volume
filer:
- #image: chrislusf/seaweedfs # use a remote image
- build: . # build our container from the local Dockerfile
+ image: chrislusf/seaweedfs # use a remote image
ports:
- 8888:8888
- 18888:18888
@@ -39,8 +36,7 @@ services:
aliases:
- seaweed_filer
s3:
- #image: chrislusf/seaweedfs # use a remote image
- build: . # build our container from the local Dockerfile
+ image: chrislusf/seaweedfs # use a remote image
ports:
- 8333:8333
command: 's3 -filer="filer:8888"'
diff --git a/docker/local-compose.yml b/docker/local-compose.yml
new file mode 100644
index 000000000..2c3679885
--- /dev/null
+++ b/docker/local-compose.yml
@@ -0,0 +1,54 @@
+version: '2'
+
+services:
+ master:
+ #image: chrislusf/seaweedfs # use a remote image
+ build: . # build our container from the local Dockerfile
+ ports:
+ - 9333:9333
+ command: "master"
+ networks:
+ default:
+ aliases:
+ - seaweed_master
+ volume:
+ #image: chrislusf/seaweedfs # use a remote image
+ build: . # build our container from the local Dockerfile
+ ports:
+ - 8080:8080
+ - 18080:18080
+ command: 'volume -max=5 -mserver="master:9333" -port=8080'
+ depends_on:
+ - master
+ networks:
+ default:
+ aliases:
+ - seaweed_volume
+ filer:
+ #image: chrislusf/seaweedfs # use a remote image
+ build: . # build our container from the local Dockerfile
+ ports:
+ - 8888:8888
+ - 18888:18888
+ command: 'filer -master="master:9333"'
+ depends_on:
+ - master
+ - volume
+ networks:
+ default:
+ aliases:
+ - seaweed_filer
+ s3:
+ #image: chrislusf/seaweedfs # use a remote image
+ build: . # build our container from the local Dockerfile
+ ports:
+ - 8333:8333
+ command: 's3 -filer="filer:8888"'
+ depends_on:
+ - master
+ - volume
+ - filer
+ networks:
+ default:
+ aliases:
+ - seaweed_s3