You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.5 KiB

4 years ago
  1. version: '2'
  2. services:
  3. master:
  4. image: chrislusf/seaweedfs:local
  5. ports:
  6. - 9333:9333
  7. - 19333:19333
  8. command: "master -ip=master"
  9. volume:
  10. image: chrislusf/seaweedfs:local
  11. ports:
  12. - 8080:8080
  13. - 18080:18080
  14. command: "volume -mserver=master:9333 -port=8080 -ip=volume"
  15. depends_on:
  16. - master
  17. mysql:
  18. image: percona/percona-server:5.7
  19. ports:
  20. - 3306:3306
  21. volumes:
  22. - ./seaweedfs.sql:/docker-entrypoint-initdb.d/seaweedfs.sql
  23. environment:
  24. - MYSQL_ROOT_PASSWORD=secret
  25. - MYSQL_DATABASE=seaweedfs
  26. - MYSQL_PASSWORD=secret
  27. - MYSQL_USER=seaweedfs
  28. filer:
  29. image: chrislusf/seaweedfs:local
  30. ports:
  31. - 8888:8888
  32. - 18888:18888
  33. environment:
  34. - WEED_MYSQL_HOSTNAME=mysql
  35. - WEED_MYSQL_PORT=3306
  36. - WEED_MYSQL_DATABASE=seaweedfs
  37. - WEED_MYSQL_USERNAME=seaweedfs
  38. - WEED_MYSQL_PASSWORD=secret
  39. - WEED_MYSQL_ENABLED=true
  40. - WEED_LEVELDB2_ENABLED=false
  41. command: 'filer -master="master:9333"'
  42. depends_on:
  43. - master
  44. - volume
  45. - mysql
  46. ingress:
  47. image: jwilder/nginx-proxy
  48. ports:
  49. - "80:80"
  50. volumes:
  51. - /var/run/docker.sock:/tmp/docker.sock:ro
  52. - /tmp/nginx:/etc/nginx/conf.d
  53. s3:
  54. image: chrislusf/seaweedfs:local
  55. ports:
  56. - 8333:8333
  57. command: 's3 -filer="filer:8888"'
  58. depends_on:
  59. - master
  60. - volume
  61. - filer
  62. environment:
  63. - VIRTUAL_HOST=s3
  64. - VIRTUAL_PORT=8333