A docker image of the latex environment, with support for pre-installing the latest full environment of overleaf and vscode(code-server).
vscode + full overleaf + docker
-
Update the latest overleaf
-
Complete tex environment
-
With code-server for online use of vscode
-
With Chinese language package
save as
docker-compose.yml
https://github.com/overleaf/overleaf/blob/main/docker-compose.yml
save as
docker-compose.override.yml
# RAW https://github.com/overleaf/overleaf/blob/main/docker-compose.yml
services:
sharelatex:
restart: always
# 0.overleaf
# image: zanderzhao/latex-docker:overleaf-latest
# 1.overleaf vscode
# image: zanderzhao/latex-docker:overleaf-vscode-latest
# 2.overleaf-full
# image: zanderzhao/latex-docker:overleafull-latest
# 3.overleaf-full vscode
# image: zanderzhao/latex-docker:overleafull-vscode-latest
# 4.overleaf-full cn-fonts
# image: zanderzhao/latex-docker:overleafull-cn-latest
# 5.overleaf-full vscode cn-fonts
image: zanderzhao/latex-docker:overleafull-vscode-cn-latest
ports:
# For overleaf, the previous 80 can change to others ports, eg: 8081:80, overleaf will server at port 8081 local
- 80:80
# For vscode, the previous 8090 can change to others ports, eg: 8082:8090, vscode will server at port 8082 local
- 8090:8090
volumes:
# For overleaf
- ./sharelatex_data:/var/lib/sharelatex
# For vscode
- ./codeserver_data:/var/lib/codeserver
environment:
# For vscode
PASSWORD: 123456
more tags: https://hub.docker.com/r/zanderzhao/latex-docker/tags
use docker-compose up -d
setup
The overleaf will server at 80(default port), go to http://127.0.0.1:80/launchpad page to set up your first admin user.
The code-server(vscode) will server at 8090(default port),
go to http://127.0.0.1:8090 page to use,
the password is which you set in Step 2 environment
> PASSWORD
, default demo set 123456