diff --git a/Docker/sharelatex/.env b/Docker/sharelatex/.env new file mode 100644 index 0000000..97b74c6 --- /dev/null +++ b/Docker/sharelatex/.env @@ -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 ShareLaTeX"}]' +SHARELATEX_RIGHT_FOOTER='[{"text": "Florian Hoss"}]' + +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' diff --git a/Docker/sharelatex/docker-compose.yml b/Docker/sharelatex/docker-compose.yml new file mode 100644 index 0000000..c5f46a1 --- /dev/null +++ b/Docker/sharelatex/docker-compose.yml @@ -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