docker-compose.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. version: '3'
  2. services:
  3. cells:
  4. image: pydio/cells:latest
  5. restart: always
  6. ports: ["8080:8080"]
  7. environment:
  8. - CELLS_LOG_LEVEL=production
  9. - CELLS_SSL_CERT_FILE=/ssl/ssl.cert
  10. - CELLS_SSL_KEY_FILE=/ssl/ssl.key
  11. volumes:
  12. - ./pydio/data:/var/cells/data
  13. - ./pydio/cells:/var/cells
  14. - ./ssl:/ssl
  15. networks:
  16. - cells
  17. mysql:
  18. image: mariadb
  19. restart: always
  20. environment:
  21. MYSQL_RANDOM_ROOT_PASSWORD: 1
  22. MYSQL_DATABASE: ${MYSQL_DB}
  23. MYSQL_USER: ${MYSQL_USER}
  24. MYSQL_PASSWORD: ${MYSQL_PASS}
  25. command: [mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci]
  26. volumes:
  27. - ./pydio/db:/var/lib/mysql
  28. networks:
  29. - cells
  30. db:
  31. image: mariadb:10.5
  32. container_name: seafile-mysql
  33. environment:
  34. - MYSQL_ROOT_PASSWORD=${DB_PASS} # Requested, set the root's password of MySQL service.
  35. - MYSQL_LOG_CONSOLE=true
  36. volumes:
  37. - ./seafile/db:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
  38. networks:
  39. - seafile
  40. memcached:
  41. image: memcached:1.6
  42. container_name: seafile-memcached
  43. entrypoint: memcached -m 256
  44. networks:
  45. - seafile
  46. seafile:
  47. image: seafileltd/seafile-mc:latest
  48. container_name: seafile
  49. ports:
  50. - "80:80"
  51. # - "443:443" # If https is enabled, cancel the comment.
  52. volumes:
  53. - ./seafile/data:/shared # Requested, specifies the path to Seafile data persistent store.
  54. environment:
  55. - DB_HOST=db
  56. - DB_ROOT_PASSWD=${DB_PASS} # Requested, the value shuold be root's password of MySQL service.
  57. - TIME_ZONE=Europe/Zurich # Optional, default is UTC. Should be uncomment and set to your local time zone.
  58. - SEAFILE_ADMIN_EMAIL=${SF_EMAIL} # Specifies Seafile admin user, default is 'me@example.com'.
  59. - SEAFILE_ADMIN_PASSWORD=${SF_PASS} # Specifies Seafile admin password, default is 'asecret'.
  60. - SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not.
  61. - SEAFILE_SERVER_HOSTNAME=${SF_HOSTNAME} # Specifies your host name if https is enabled.
  62. depends_on:
  63. - db
  64. - memcached
  65. networks:
  66. - seafile
  67. networks:
  68. seafile:
  69. cells: