--- # Tasks for Sharelatex role - name: Pull Sharelatex image docker_image: name: "{{ sharelatex_image }}" source: pull force_source: yes - name: Ensure Overleaf Directory exists file: path: "/var/lib/{{ host_directory }}" state: directory mode: 0755 - name: Create webserver container docker_container: name: "{{ sharelatex_container }}" image: "{{ sharelatex_image }}" state: started restart_policy: "unless-stopped" env: # SHARELATEX_APP_NAME: Overleaf Community Edition # SHARELATEX_MONGO_URL: mongodb://mongo/sharelatex OVERLEAF_APP_NAME: Overleaf Community Edition OVERLEAF_MONGO_URL: mongodb://mongo/sharelatex # Same property, unfortunately with different names in # different locations OVERLEAF_REDIS_HOST: redis REDIS_HOST: redis ENABLED_LINKED_FILE_TYPES: 'project_file,project_output_file' # 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 links: - "{{ mongo_container }}:mongo" - "{{ redis_container }}:redis" published_ports: - "127.0.0.1:{{ host_port }}:80" volumes: - "/var/lib/{{ host_directory }}:/var/lib/overleaf" # - "/var/lib/{{ host_directory }}:/var/lib/sharelatex"