Git integration
The Git integration is available for Overleaf CEP
Add the git-bridge container (docker-compose)
For users running a custom docker-compose.yml, add the following container configuration to your compose file:
git-bridge:
restart: always
image: quay.io/sharelatex/git-bridge:4.0.0 # tag should match the `sharelatex` container tag
volumes:
- ~/git_bridge_data:/data/git-bridge
container_name: git-bridge
expose:
- "8000"
environment:
GIT_BRIDGE_API_BASE_URL: "http://sharelatex:3000/api/v0/" # "http://sharelatex/api/v0/" for version 4.1.6 and earlier
GIT_BRIDGE_OAUTH2_SERVER: "http://sharelatex"
GIT_BRIDGE_POSTBACK_BASE_URL: "http://git-bridge:8000"
GIT_BRIDGE_ROOT_DIR: "/data/git-bridge"
user: root
command: ["/server-pro-start.sh"]Update the sharelatex container configuration
You’ll also need to link the git-bridge container in the sharelatex container and define the following environment variables, please pay attention to V2_HISTORY_URL:
sharelatex:
links:
- git-bridge
environment:
GIT_BRIDGE_ENABLED: true
GIT_BRIDGE_HOST: "git-bridge"
GIT_BRIDGE_PORT: "8000"
V2_HISTORY_URL: "http://sharelatex:3054"Swapping projects to S3
The Git integration stores a complete git repository on disk for each project that gets cloned by a user. If you have limited disk space, you can activate a swap job that will move repositories that are less used to AWS S3. If a swapped repository is needed again, it gets moved back to the disk. The following environment variables control the swap job:
Last updated
Was this helpful?
