include sharelatex docker-compose file

This commit is contained in:
Florian Hoss 2022-06-29 13:37:27 +02:00
parent 59eae60561
commit dc3a7076eb
2 changed files with 92 additions and 0 deletions

39
Docker/sharelatex/.env Normal file
View file

@ -0,0 +1,39 @@
SHARELATEX_APP_NAME='Florians Overleaf'
SHARELATEX_MONGO_URL='mongodb://sharelatex-db/sharelatex'
SHARELATEX_REDIS_HOST='sharelatex-redis'
REDIS_HOST='sharelatex-redis'
ENABLED_LINKED_FILE_TYPES='url,project_filek'
# Enables Thumbnail generation using ImageMagick
ENABLE_CONVERSIONS='true'
# Disables email confirmation requirement
EMAIL_CONFIRMATION_DISABLED='true'
# temporary fix for LuaLaTex compiles
# see https://github.com/overleaf/overleaf/issues/695
TEXMFVAR='/var/lib/sharelatex/tmp/texmf-var'
SHARELATEX_SITE_URL='https://tex.example.de'
SHARELATEX_NAV_TITLE='Overleaf of Florian Hoss'
# SHARELATEX_HEADER_IMAGE_URL: http://somewhere.com/mylogo.png
# SHARELATEX_ADMIN_EMAIL: support@it.com
SHARELATEX_LEFT_FOOTER='[{"text": "Powered by <a href=\"https://www.sharelatex.com\">ShareLaTeX</a>"}]'
SHARELATEX_RIGHT_FOOTER='[{"text": "<a href=\"https://florianhoss.de\">Florian Hoss</a>"}]'
SHARELATEX_EMAIL_FROM_ADDRESS='lulu@gmail.com'
SHARELATEX_EMAIL_SMTP_HOST='smtp.gmail.com'
SHARELATEX_EMAIL_SMTP_PORT='587'
SHARELATEX_EMAIL_SMTP_SECURE='true'
SHARELATEX_EMAIL_SMTP_USER='lulu@gmail.com'
SHARELATEX_EMAIL_SMTP_PASS='lala'
SHARELATEX_EMAIL_SMTP_TLS_REJECT_UNAUTH='true'
SHARELATEX_EMAIL_SMTP_IGNORE_TLS='false'
SHARELATEX_CUSTOM_EMAIL_FOOTER='This system is run by Florian Hoss'

View file

@ -0,0 +1,53 @@
version: "3.9"
networks:
net:
external: false
volumes:
redis:
mongo-configdb:
services:
sharelatex:
image: sharelatex/sharelatex:2.7.0
container_name: sharelatex
restart: unless-stopped
depends_on:
sharelatex-db:
condition: service_healthy
sharelatex-redis:
condition: service_started
ports:
- "127.0.0.1:8080:80"
networks:
- net
volumes:
- ./sharelatex_data:/var/lib/sharelatex
- ./sharelatex_packages:/usr/local/texlive
env_file:
- ./.env
sharelatex-db:
restart: unless-stopped
image: mongo:4.0
container_name: sharelatex-db
networks:
- net
volumes:
- ./db:/data/db
- mongo-configdb:/data/configdb
healthcheck:
test: echo 'db.stats().ok' | mongo localhost:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
sharelatex-redis:
restart: unless-stopped
image: redis:latest
container_name: sharelatex-redis
networks:
- net
volumes:
- redis:/data