parent
58aeaacc67
commit
aa0987593e
1 changed files with 12 additions and 12 deletions
|
@ -10,18 +10,18 @@ services:
|
|||
sharelatex:
|
||||
restart: always
|
||||
image: sharelatex/sharelatex
|
||||
container_name: sharelatex
|
||||
container_name: overleaf
|
||||
networks:
|
||||
- traefik
|
||||
- internal
|
||||
depends_on:
|
||||
mongo:
|
||||
overleaf-mongodb:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
overleaf-redis:
|
||||
condition: service_started
|
||||
links:
|
||||
- mongo
|
||||
- redis
|
||||
- overleaf-mongodb
|
||||
- overleaf-redis
|
||||
stop_grace_period: 60s
|
||||
volumes:
|
||||
- {{ data_dir }}/overleaf/sharelatex_data:/var/lib/sharelatex
|
||||
|
@ -37,12 +37,12 @@ services:
|
|||
environment:
|
||||
SHARELATEX_APP_NAME: Overleaf Community Edition
|
||||
|
||||
SHARELATEX_MONGO_URL: mongodb://mongo:27017/sharelatex
|
||||
SHARELATEX_MONGO_URL: mongodb://overleaf-mongodb:27017/sharelatex
|
||||
|
||||
# Same property, unfortunately with different names in
|
||||
# different locations
|
||||
SHARELATEX_REDIS_HOST: redis
|
||||
REDIS_HOST: redis
|
||||
SHARELATEX_REDIS_HOST: overleaf-redis
|
||||
REDIS_HOST: overleaf-redis
|
||||
|
||||
ENABLED_LINKED_FILE_TYPES: 'project_file,project_output_file'
|
||||
|
||||
|
@ -79,10 +79,10 @@ services:
|
|||
# SHARELATEX_EMAIL_SMTP_LOGGER: true
|
||||
# SHARELATEX_CUSTOM_EMAIL_FOOTER: "This system is run by department x"
|
||||
|
||||
mongo:
|
||||
overleaf-mongodb:
|
||||
restart: always
|
||||
image: mongo:4.4
|
||||
container_name: mongo
|
||||
container_name: overleaf-mongodb
|
||||
networks:
|
||||
- internal
|
||||
expose:
|
||||
|
@ -95,10 +95,10 @@ services:
|
|||
timeout: 10s
|
||||
retries: 5
|
||||
|
||||
redis:
|
||||
overleaf-redis:
|
||||
restart: always
|
||||
image: redis:5
|
||||
container_name: redis
|
||||
container_name: overleaf-redis
|
||||
networks:
|
||||
- internal
|
||||
expose:
|
||||
|
|
Reference in a new issue