version:'2.2' services: sharelatex: restart:always # Server Pro users: # image: quay.io/sharelatex/sharelatex-pro image:sharelatex/sharelatex container_name:sharelatex depends_on: mongo: condition:service_healthy redis: condition:service_started ports: -9010:80 links: -mongo -redis stop_grace_period:60s volumes: -~/sharelatex_data:/var/lib/overleaf ######################################################################## #### Server Pro: Uncomment the following line to mount the docker #### #### socket, required for Sibling Containers to work #### ######################################################################## # - /var/run/docker.sock:/var/run/docker.sock environment:
OVERLEAF_APP_NAME:OverleafCommunityEdition
OVERLEAF_MONGO_URL:mongodb://mongo/sharelatex # OVERLEAF_MONGO_URL: mongodb://mongo/sharelatex # Same property, unfortunately with different names in # different locations OVERLEAF_REDIS_HOST:redis # OVERLEAF_REDIS_HOST: redis REDIS_HOST:redis
# OVERLEAF_LEFT_FOOTER: '[{"text": "Another page I want to link to can be found <a href=\"here\">here</a>"} ]' # OVERLEAF_RIGHT_FOOTER: '[{"text": "Hello I am on the Right"} ]'
# See https://github.com/jwilder/nginx-proxy for documentation on how to configure the nginx-proxy container, # and https://github.com/overleaf/overleaf/wiki/HTTPS-reverse-proxy-using-Nginx for an example of some recommended # settings. We recommend using a properly managed nginx instance outside of the Overleaf Server Pro setup, # but the example here can be used if you'd prefer to run everything with docker-compose