Add initial Helm chart and Docker Compose setup for Overleaf CEP

This commit is contained in:
Elmar Kresse
2025-06-17 15:59:59 +02:00
parent 85bcc8f88d
commit ffbd5a0991
3 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
services:
overleaf:
restart: always
image: overleafcep/sharelatex:5.5.1-ext-v3
container_name: overleaf
depends_on:
mongo:
condition: service_healthy
redis:
condition: service_started
ports:
- 80:80
links:
- mongo
- redis
stop_grace_period: 60s
volumes:
- ./overleaf/overleaf_data:/var/lib/overleaf
environment:
OVERLEAF_APP_NAME: Overleaf FSR-IM
OVERLEAF_SITE_LANGUAGE: de
OVERLEAF_MONGO_URL: mongodb://mongo/overleaf
OVERLEAF_REDIS_HOST: redis
REDIS_HOST: redis
ENABLED_LINKED_FILE_TYPES: 'project_file,project_output_file'
ENABLE_CONVERSIONS: 'true'
EMAIL_CONFIRMATION_DISABLED: 'true'
TEXMFVAR: /var/lib/overleaf/tmp/texmf-var
OVERLEAF_SITE_URL: https://overleaf.fsr.imn.htwk-leipzig.de
OVERLEAF_NAV_TITLE: Overleaf FSR-IM
OVERLEAF_ADMIN_EMAIL: fsrim@htwk-leipzig.de
OVERLEAF_LEFT_FOOTER: '[{"text": "© Overleaf 2025 Powered by FSR-IM"} ]'
OVERLEAF_RIGHT_FOOTER: '[{"text": "<a href=\"https://gitlab.dit.htwk-leipzig.de/fsr-im\">Gitlab</a>"} ]'
redis:
restart: always
image: redis:6.2
container_name: redis
expose:
- 6379
volumes:
- ./overleaf/redis_data:/data
mongo:
image: mongo:7.0
container_name: mongo
hostname: mongo
command: '--replSet overleaf'
environment:
MONGO_INITDB_DATABASE: overleaf
volumes:
- ./mongodb-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- mongodb-data:/data/db/
ports:
- "27017:27017"
extra_hosts:
- mongo:127.0.0.1
healthcheck:
test: echo 'db.stats().ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
volumes:
mongodb-data:
driver: local
name: mongo-data