From 476cb50387148a4b4119683c683fd4ce1c9408e5 Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Wed, 7 Sep 2022 06:58:06 +0000 Subject: [PATCH] Update 'Docker/sharelatex/docker-compose.yml' --- Docker/sharelatex/docker-compose.yml | 48 +++++++++++++++------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/Docker/sharelatex/docker-compose.yml b/Docker/sharelatex/docker-compose.yml index ce4b134..4c11474 100644 --- a/Docker/sharelatex/docker-compose.yml +++ b/Docker/sharelatex/docker-compose.yml @@ -6,48 +6,52 @@ networks: volumes: redis: - mongo-configdb: services: sharelatex: - image: sharelatex/sharelatex:2.7.0 + image: sharelatex/sharelatex 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 + environment: + SHARELATEX_APP_NAME: Overleaf + SHARELATEX_MONGO_URL: mongodb://sharelatex-db/sharelatex + SHARELATEX_REDIS_HOST: sharelatex-redis + REDIS_HOST: sharelatex-redis + ENABLED_LINKED_FILE_TYPES: 'url,project_file' + ENABLE_CONVERSIONS: 'true' + EMAIL_CONFIRMATION_DISABLED: 'true' + TEXMFVAR: /var/lib/sharelatex/tmp/texmf-var + SHARELATEX_SITE_URL: https://tex.tp.unjx.de + SHARELATEX_NAV_TITLE: ShareLaTeX Instance + networks: + - net sharelatex-db: - restart: unless-stopped image: mongo:4.0 container_name: sharelatex-db - networks: - - net + restart: unless-stopped 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:6.2.6 - container_name: sharelatex-redis + expose: + - 27017 networks: - net + + sharelatex-redis: + image: redis:6 + container_name: sharelatex-redis + restart: unless-stopped volumes: - redis:/data + expose: + - 6379 + networks: + - net