test-etcd-filer.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. version: '3.9'
  2. services:
  3. etcd:
  4. image: quay.io/coreos/etcd:v3.5.4
  5. command: "etcd --advertise-client-urls http://etcd:2379 --listen-client-urls http://0.0.0.0:2379"
  6. ports:
  7. - 2379:2379
  8. master:
  9. image: chrislusf/seaweedfs:local
  10. ports:
  11. - 9333:9333
  12. - 19333:19333
  13. command: "master -ip=master -volumeSizeLimitMB=1024"
  14. volume:
  15. image: chrislusf/seaweedfs:local
  16. ports:
  17. - 8080:8080
  18. - 18080:18080
  19. command: "volume -mserver=master:9333 -port=8080 -ip=volume -max=0 -preStopSeconds=1"
  20. depends_on:
  21. - master
  22. s3:
  23. image: chrislusf/seaweedfs:local
  24. ports:
  25. - 8888:8888
  26. - 18888:18888
  27. - 8333:8333
  28. command: '-v 9 filer -master="master:9333" -s3 -s3.config=/etc/seaweedfs/s3.json -s3.port=8333'
  29. environment:
  30. WEED_LEVELDB2_ENABLED: 'false'
  31. WEED_ETCD_ENABLED: 'true'
  32. WEED_ETCD_KEY_PREFIX: 'seaweedfs.'
  33. WEED_ETCD_SERVERS: "http://etcd:2379"
  34. volumes:
  35. - ./s3.json:/etc/seaweedfs/s3.json
  36. depends_on:
  37. - etcd
  38. - master
  39. - volume
  40. registry:
  41. image: registry:2
  42. environment:
  43. REGISTRY_HTTP_ADDR: "0.0.0.0:5001" # seaweedfs s3
  44. REGISTRY_LOG_LEVEL: "debug"
  45. REGISTRY_STORAGE: "s3"
  46. REGISTRY_STORAGE_S3_REGION: "us-east-1"
  47. REGISTRY_STORAGE_S3_REGIONENDPOINT: "http://s3:8333"
  48. REGISTRY_STORAGE_S3_BUCKET: "registry"
  49. REGISTRY_STORAGE_S3_ACCESSKEY: "some_access_key1"
  50. REGISTRY_STORAGE_S3_SECRETKEY: "some_secret_key1"
  51. REGISTRY_STORAGE_S3_V4AUTH: "true"
  52. REGISTRY_STORAGE_S3_SECURE: "false"
  53. REGISTRY_STORAGE_S3_SKIPVERIFY: "true"
  54. REGISTRY_STORAGE_S3_ROOTDIRECTORY: "/"
  55. REGISTRY_STORAGE_DELETE_ENABLED: "true"
  56. REGISTRY_STORAGE_REDIRECT_DISABLE: "true"
  57. REGISTRY_VALIDATION_DISABLED: "true"
  58. ports:
  59. - 5001:5001
  60. depends_on:
  61. - s3