当前位置: 首页 > news >正文

docker 搭建 Seafile 集成 onlyoffice

docker-compose一键部署yaml文件

version: "3"services:db:image: mariadb:10.11container_name: seafile-mysqlenvironment:- MYSQL_ROOT_PASSWORD=db_dev  # Requested, set the root's password of MySQL service.- MYSQL_LOG_CONSOLE=truevolumes:- /share/ZFS18_DATA/Container/app/seafile/seafile-mysql/db:/var/lib/mysql  # Requested, specifies the path to MySQL data persistent store.networks:- seafile-net# 添加onlyoffice组件,设置外网端口为10000onlyoffice:image: onlyoffice/documentserver:latestports:- "10000:80"container_name: seafile-onlyofficenetworks:- seafile-netenvironment:- JWT_ENABLED=true- JWT_SECRET=FDVQHs4OXKgU     ##可以自定义memcached:image: memcached:1.6container_name: seafile-memcachedentrypoint: memcached -m 256networks:- seafile-netseafile:image: seafileltd/seafile-mc:latestcontainer_name: seafileports:- "80:80"
#      - "443:443"  # If https is enabled, cancel the comment.volumes:- /share/ZFS18_DATA/Container/app/seafile/seafile-data:/shared   # Requested, specifies the path to Seafile data persistent store.environment:- DB_HOST=db- DB_ROOT_PASSWD=db_dev  # Requested, the value shuold be root's password of MySQL service.- TIME_ZONE=Asia/Shanghai # Optional, default is UTC. Should be uncomment and set to your local time zone.- SEAFILE_ADMIN_EMAIL=admin@123.com # Specifies Seafile admin user, default is 'me@example.com'.- SEAFILE_ADMIN_PASSWORD=123456     # Specifies Seafile admin password, default is 'asecret'.- SEAFILE_SERVER_LETSENCRYPT=false   # Whether use letsencrypt to generate cert.- SEAFILE_SERVER_HOSTNAME=seafile.example.com # Specifies your host name.depends_on:- db- memcachednetworks:- seafile-netnetworks:seafile-net:

修改 seahub_settings.py

seahub_settings.py

# OnlyOffice
ENABLE_ONLYOFFICE = True
VERIFY_ONLYOFFICE_CERTIFICATE = True
ONLYOFFICE_APIJS_URL = 'http://<your-seafile-doamin>/onlyofficeds/web-apps/apps/api/documents/api.js'
ONLYOFFICE_FILE_EXTENSION = ('doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'odt', 'fodt', 'odp', 'fodp', 'ods', 'fods')
ONLYOFFICE_EDIT_FILE_EXTENSION = ('docx', 'pptx', 'xlsx')
ONLYOFFICE_JWT_SECRET = 'FDVQHs4OXKgU'     ## 和docker-compose.yml 中保持一致

注意: your-seafile-doamin 是指您seafile的服务器的 ip / 域名+端口


发送邮件提醒

邮件提醒会使某些功能有更好的用户体验, 比如发送邮件提醒用户新消息到达. 请在seahub_settings.py中加入以下语句以开启邮件提醒功能
(同时需要对你的邮箱进行设置).

EMAIL_USE_SSL = True
EMAIL_HOST = 'smtp.exmail.qq.com'
EMAIL_HOST_USER = 'username@domain.com'
EMAIL_HOST_PASSWORD = 'Auth_Code'
EMAIL_PORT = '465'
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = EMAIL_HOST_USER
http://www.lryc.cn/news/292809.html

相关文章:

  • 【Spring Boot 3】【JPA】嵌入式对象
  • STM32控制DS18B20温度传感器获取温度
  • 服务器常遇的响应状态码
  • 云原生业务全流程DevOps配置预研与实践
  • SouthLeetCode-打卡24年01月第5周
  • 【国产MCU】-CH32V307-通用DMA控制器及使用
  • mysql8.0-cnf文件
  • MySQL进阶45讲【11】怎么更好地给字符串字段加索引?
  • ​(三)hadoop之hive的搭建1
  • Spring事务传播机制
  • 智能分析网关V4+EasyCVR视频融合平台——高速公路交通情况的实时监控和分析一体化方案
  • Vue3.0(一):Vue的引入-options api-模板语法
  • API网关-Apisix多节点搭建(RPM包方式)
  • HAL库配置片内FLASH读写
  • 日志记录——单片机可执行文件合并
  • 2024数模美赛C题F题完整代码结果展示
  • H5调用安卓原生相机API案例
  • Java面试——计网篇
  • 函数式接口当参数使用
  • 全面详解Maven的配置文件settings.xml
  • 【Spring连载】使用Spring Data访问Redis(十四)----Redis Repositories
  • 小鹏汽车穿越“生死线”
  • AIPC专题:深耕笔电背光模组领域,AIPC与车载显示拉动公司成长
  • 架构(十一)从0到1实现动态定时任务
  • Mybatis 批量插入数据 SQL
  • 【学员分享-考试心得】国产数据库潜力无限,云贝教育OBCP认证培训帮您解难题
  • 【Mysql】事务的隔离级别与 MVCC
  • MongoDB从入门到实战之MongoDB快速入门
  • Linux服务详解
  • 闲聊电脑(4)硬盘分区