Skip to content

Instantly share code, notes, and snippets.

@prologic
Created May 25, 2021 03:07
Show Gist options
  • Save prologic/d602c2c8f77ee8b9ccebab3db7183769 to your computer and use it in GitHub Desktop.
Save prologic/d602c2c8f77ee8b9ccebab3db7183769 to your computer and use it in GitHub Desktop.
SeaweedFS Docker Swarm Stack
---
version: "3.8"
services:
master:
image: chrislusf/seaweedfs:latest
command: master -mdir=/data
networks:
- weed
volumes:
- master:/data
deploy:
mode: replicated
replicas: 1
volume:
image: chrislusf/seaweedfs:latest
command: volume -dir=/data -mserver=master:9333
networks:
- weed
volumes:
- volume:/data
deploy:
mode: global
filer:
image: chrislusf/seaweedfs:latest
command: filer -master=master:9333
ports:
- "8888:8888/tcp"
networks:
- weed
deploy:
mode: replicated
replicas: 1
networks:
weed:
attachable: true
driver: overlay
volumes:
master:
driver: local
volume:
driver: local
@prologic
Copy link
Author

Install with:

$ docker stack deploy -c weed.yml weed
$ docker plugin install --alias weed katharostech/seaweedfs-volume-plugin HOST=localhost:8888 ROOT_VOLUME_NAME=root

@prologic
Copy link
Author

TODO:

  • Test multi-node cluster
  • Run some "benchmarks"
  • Run some workloads

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment