Update 'Docker/sharelatex/docker-compose.yml'

This commit is contained in:
Florian Hoss 2022-09-07 06:58:06 +00:00
parent 089136f4a6
commit 476cb50387

View file

@ -6,48 +6,52 @@ networks:
volumes: volumes:
redis: redis:
mongo-configdb:
services: services:
sharelatex: sharelatex:
image: sharelatex/sharelatex:2.7.0 image: sharelatex/sharelatex
container_name: sharelatex container_name: sharelatex
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
sharelatex-db: sharelatex-db:
condition: service_healthy
sharelatex-redis: sharelatex-redis:
condition: service_started
ports: ports:
- "127.0.0.1:8080:80" - "127.0.0.1:8080:80"
networks:
- net
volumes: volumes:
- ./sharelatex_data:/var/lib/sharelatex - ./sharelatex_data:/var/lib/sharelatex
- ./sharelatex_packages:/usr/local/texlive - ./sharelatex_packages:/usr/local/texlive
env_file: environment:
- ./.env 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: sharelatex-db:
restart: unless-stopped
image: mongo:4.0 image: mongo:4.0
container_name: sharelatex-db container_name: sharelatex-db
networks: restart: unless-stopped
- net
volumes: volumes:
- ./db:/data/db - ./db:/data/db
- mongo-configdb:/data/configdb expose:
healthcheck: - 27017
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
networks: networks:
- net - net
sharelatex-redis:
image: redis:6
container_name: sharelatex-redis
restart: unless-stopped
volumes: volumes:
- redis:/data - redis:/data
expose:
- 6379
networks:
- net