主要记录Overleaf自部署的流程和命令,用于方便以后再次部署。
📽️ 官方项目
- Overleaf的Github地址:
- 官方的安装工具:
📝 安装要求
- Ubuntu 22.04
- docker
- docker compose
🤗 安装流程
- 拉取项目:
- 初始化配置:
bin/init - 初始化之后,在config文件夹下,会有三个文件,按照官方的说法:
overleaf.rc: the main top-level configuration filevariables.env: environment variables loaded into the docker containerversion: the version of the docker images to use
- 修改
overleaf.rc的端口和IP:
- 启动容器:
bin/upbin/start
更新texlive包
overleaf 带的texlive不是满血最新版,会导致使用很多依赖的时候,爆红,所以,需要更新到最新。- 进入容器:
- 依次执行:
以上更新texlive包的步骤,来自参考文章。
配置内网穿透(Optional)
这一步,主要是因为我把Overleaf部署在虚拟机内,所以,为了能够在外网访问,需要用内网穿透暴露出去,如果是直接部署在云服务器,可忽略。
- 配置域名解析:
overleaf.coderwdd,top
- 配置FRPC.toml:
📎 参考文章
- Author:CoderWdd
- URL:https://www.wuinsights.top//article/01HW9ZX0JNPYY9X9CJQCK2EB3Y
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!

