From f2ccbdb9bd792670918f2b9dc4e8758bce0b65c8 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 23 Sep 2016 10:06:17 -0700 Subject: [PATCH] Updated Getting Started (markdown) --- Getting-Started.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Getting-Started.md b/Getting-Started.md index 0d9fcca..86b5426 100644 --- a/Getting-Started.md +++ b/Getting-Started.md @@ -71,12 +71,37 @@ Then, you can simply check "du -m -s /some/big/folder" to see the actual disk us Now you can use your tools to hit SeaweedFS as hard as you can. + + +## Running with Docker ## + +Use with docker is easy as run locally, you can pass all args like above. But you don't need to worry about "-ip". It'll be treated by the entrypoint script. + +``` +docker run -p 9333:9333 --name master chrislusf/seaweedfs master +``` +``` +docker run -p 8080:8080 --name volume --link master chrislusf/seaweedfs volume -max=5 -mserver="master:9333" -port=8080 +``` +#### With Compose #### +But with Compose it's easiest. +To startup just run: +``` +docker-compose -f docker/docker-compose.yml up +``` +And to scale: +``` +docker-compose -f docker/docker-compose.yml scale volume=2 +``` +Remember that if multiple containers for volume are created on a single host, the port will clash. + ## Using SeaweedFS in docker You can use image "cydev/weed" or build your own with [dockerfile][] in the root of repo. [dockerfile]: https://github.com/chrislusf/seaweedfs/blob/master/Dockerfile + ### Using pre-built Docker image ```bash