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.

31 lines
802 B

3 years ago
  1. version: '3'
  2. services:
  3. mfsmaster:
  4. image: kadimasolutions/lizardfs
  5. command: master
  6. restart: on-failure
  7. volumes:
  8. - /var/lib/mfs
  9. ports:
  10. - ${MASTER_PORT}:9421
  11. chunkserver:
  12. image: kadimasolutions/lizardfs
  13. command: chunkserver
  14. restart: on-failure
  15. environment:
  16. # This lets you run the chunkserver with less available disk space
  17. MFSCHUNKSERVER_HDD_LEAVE_SPACE_DEFAULT: 20Mi # 4Gi is the default
  18. MFSHDD_1: /mnt/mfshdd
  19. volumes:
  20. - /mnt/mfshdd
  21. client:
  22. image: kadimasolutions/lizardfs
  23. command: client /mnt/mfs
  24. restart: on-failure
  25. # Required permissions and devices for container to mount filesystem
  26. cap_add:
  27. - SYS_ADMIN
  28. devices:
  29. - /dev/fuse:/dev/fuse
  30. security_opt:
  31. - apparmor:unconfined