local-clusters-compose.yml 714 B

12345678910111213141516171819202122232425262728
  1. version: '2'
  2. services:
  3. server1:
  4. image: chrislusf/seaweedfs:local
  5. ports:
  6. - 9333:9333
  7. - 19333:19333
  8. - 8084:8080
  9. - 18084:18080
  10. - 8888:8888
  11. - 18888:18888
  12. command: "server -ip=server1 -filer -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1"
  13. volumes:
  14. - ./master-cloud.toml:/etc/seaweedfs/master.toml
  15. depends_on:
  16. - server2
  17. server2:
  18. image: chrislusf/seaweedfs:local
  19. ports:
  20. - 9334:9333
  21. - 19334:19333
  22. - 8085:8080
  23. - 18085:18080
  24. - 8889:8888
  25. - 18889:18888
  26. - 8334:8333
  27. command: "server -ip=server2 -filer -s3 -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1"