Seatale部署

开发版官网部署文档:

https://docs.seatable.cn/published/seatable-manual/docker/seatable-ce/Deploy%20SeaTable%20with%20Docker.md

Docker-compose.yml 内容

  1. version: '2.0'
  2. services:
  3. db:
  4. image: mariadb:10.5
  5. container_name: seatable-mysql
  6. environment:
  7. - MYSQL_ROOT_PASSWORD=PASSWORD # Requested, set the root's password of MySQL service.
  8. - MYSQL_LOG_CONSOLE=true
  9. volumes:
  10. - /www/wwwroot/seatable/mysql-data:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
  11. networks:
  12. - seatable-net
  13. memcached:
  14. image: memcached:1.5.6
  15. container_name: seatable-memcached
  16. entrypoint: memcached -m 256
  17. networks:
  18. - seatable-net
  19. redis:
  20. image: redis:5.0.7
  21. container_name: seatable-redis
  22. networks:
  23. - seatable-net
  24. seatable:
  25. image: seatable/seatable-developer:latest
  26. container_name: seatable
  27. ports:
  28. - "3080:80"
  29. volumes:
  30. - /www/wwwroot/seatable/seatable-data:/shared # Requested, specifies the path to Seafile data persistent store.
  31. environment:
  32. - DB_HOST=db
  33. - DB_ROOT_PASSWD=PASSWORD # Requested, the value shuold be root's password of MySQL service.
  34. - SEATABLE_SERVER_LETSENCRYPT=False # Default is False. Whether to use let's encrypt certificate.
  35. - SEATABLE_SERVER_HOSTNAME=seatable.openjianghu.org # Specifies your host name.
  36. - TIME_ZONE=Asia/Shanghai # Optional, default is UTC. Should be uncomment and set to your local time zone.
  37. depends_on:
  38. - db
  39. - memcached
  40. - redis
  41. networks:
  42. - seatable-net
  43. networks:
  44. seatable-net:

启动

使用 docker-compose up -d 启动服务后,需要重新执行启动命令:

  1. docker exec -d seatable /shared/seatable/scripts/seatable.sh start

备份与恢复

只要备份 seatable-data 及 seatable-mysql 即可。