Public Repository

Last pushed: 11 days ago
Short Description
The official ShareLaTeX Community Edition docker image
Full Description

Full description is empty for this repo.

Docker Pull Command
Owner
sharelatex

Comments (12)
changux
19 days ago

Which is the admin password? I changed the admin email but I can't recover my password.

zwck
5 months ago

This compse script works without a problem

version: "3"
services:
  mongo:
    restart: always
    image: mongo
    container_name: mongo
    expose:
      - 27017
    volumes:
      - /sharelatex/mongo_data:/data/db

  redis:
    restart: always
    image: redis
    container_name: redis
    expose:
      - 6379
    volumes:
      - /sharelatex/redis_data:/data

  sharelatex:
    restart: always
    image: sharelatex/sharelatex:0.6.1
    container_name: sharelatex
    depends_on:
      - mongo
      - redis
    privileged: true
    ports:
      - 80:80
    links:
      - mongo
      - redis
    volumes:
      - /sharelatex/sharelatex_data:/var/lib/sharelatex
    environment:
      SHARELATEX_MONGO_URL: mongodb://mongo/sharelatex
      SHARELATEX_REDIS_HOST: redis
      SHARELATEX_APP_NAME: z-LatexEditor
      SHARELATEX_SITE_URL: http://url.com
      SHARELATEX_NAV_TITLE: z-LatexEditor
      SHARELATEX_HEADER_IMAGE_URL: http://somehereimage.png
      SHARELATEX_ADMIN_EMAIL: email@email.com
      SHARELATEX_LEFT_FOOTER: '[{"text": "<a href=\"https://www.google.com\">google.com</a> 2017"},{"text": " Hi!"} ]'
      SHARELATEX_RIGHT_FOOTER: '[{"text": "latex-editor"} ]'
      SHARELATEX_EMAIL_FROM_ADDRESS: 'email@email.com'
      SHARELATEX_EMAIL_SMTP_HOST: smtp.email.de
      SHARELATEX_EMAIL_SMTP_PORT: 25
      SHARELATEX_EMAIL_SMTP_USER: usr
      SHARELATEX_EMAIL_SMTP_PASS: pw
      SHARELATEX_EMAIL_SMTP_SECURE: 'false'
      SHARELATEX_EMAIL_SMTP_TLS_REJECT_UNAUTH: 'false' 
      SHARELATEX_EMAIL_SMTP_IGNORE_TLS: 'true'
zwck
5 months ago

@baudlord
I had some problems with it as well for sometime, what solved it for me was to set the following env vars:

SHARELATEX_MONGO_URL=mongodb://usr:pass@mongodb-link:27017/sharelatex \
SHARELATEX_REDIS_HOST=redis \
SHARELATEX_APP_NAME=LaTeXeditor\
SHARELATEX_REDIS_PASS=redispassword (if you set one, works also without) \
SHARELATEX_REDIS_PORT=6379 \
SHARELATEX_NAV_TITLE='title' \
SHARELATEX_RIGHT_FOOTER='[{"text":"right"}]'\
SHARELATEX_LEFT_FOOTER='[{"text":"left"}]'\
SHARELATEX_SITE_URL=http://importanturl... \
SHARELATEX_EMAIL_SMTP_HOST=smtp......\
SHARELATEX_BEHIND_PROXY=true\
SHARELATEX_EMAIL_SMTP_PORT=25\
SHARELATEX_EMAIL_SMTP_USER=emailusr\
SHARELATEX_EMAIL_SMTP_PASS=emailpass\
SHARELATEX_EMAIL_FROM_ADDRESS=email@importanturl...\
SHARELATEX_EMAIL_SMTP_SECURE=false \
SHARELATEX_EMAIL_SMTP_TLS_REJECT_UNAUTH=false \
SHARELATEX_EMAIL_SMTP_IGNORE_TLS=true\
SHARELATEX_NAV_TITLE=LaTex-Platform \
SHARELATEX_ADMIN_EMAIL=admin@admin.url \

i am guessing if its a local instance the redis port env var is only needed

baudlord
5 months ago

@zwck, this is my docker-compose:

sharelatex:
  image: sharelatex/sharelatex:0.6.1
  links:
    - sharelatex-db:sharelatex-db
    - sharelatex-redis:sharelatex-redis
  environment:
    - SHARELATEX_MONGO_URL=mongodb://sharelatex-db:27017/sharelatex
    - SHARELATEX_REDIS_HOST=sharelatex-redis
  volumes:
    - /srv/sharelatex/data:/var/lib/sharelatex

sharelatex-db:
  image: mongo
  volumes:
    - /srv/sharelatex/mongodb:/data

sharelatex-redis:
  image: redis
  volumes:
    - /srv/sharelatex/redis:/data

The thing is I can reach the Redis server from that Docker container's bash, but it seems Sharelatex fails to connect to it.

root@f6851b79fb89:/# nc sharelatex-redis 6379                         
INFO
$2095
# Server
redis_version:3.2.8
<...>
zwck
5 months ago

in order to get this up running try:

#MongoDB:

docker run --restart=always --network=local --name mongodb \
-e MONGODB_USERNAME=username \
-e MONGODB_PASSWORD=userpw \
-e MONGODB_ROOT_PASSWORD=rootpassword \
-p 27017:27017 \
-e MONGODB_DATABASE=sharelatex \
-v <mountpoint_for_presistence>:/bitnami/mongodb \
bitnami/mongodb:latest

#Redis

docker run --restart=always --network=local --name > redis -d \
-v <mountpoint_for_presistence>:/data \
-p 6379:6379 \
redis

#sharelatex

docker run -d --restart=always --network=local --> name=sharelatex \
--link mongodb:mongodb \
--link redis:redis \
-v <mountpoint_for_presistence>:/var/lib/sharelatex \
-p 5000:80 \
-e > SHARELATEX_MONGO_URL=mongodb://username:use> rpw@mongodb:27017/sharelatex \
-e SHARELATEX_REDIS_HOST=redis \
sharelatex/sharelatex:0.6.1

fill out the <presistent-path> fields and it should come up working.

However what you need to consider is setting up a nginx-reverse proxy but thats a story for another time.

baudlord
5 months ago

Getting the following error

Error: Redis connection to tcp://172.17.0.13:6379 failed - connect ENOENT at RedisClient.on_error (/var/www/sharelatex/web/node_modules/redis-sharelatex/node_modules/redis/index.js:196:24)
ralienpp
5 months ago

I pulled the latest version of the image (0.6.1 at the moment) and started Sharelatex, but the reviews feature is missing.

I am sure that the image was updated because I see the redesigned lion logo.

Is it not a part of the community edition? Or am I missing an important step?

tuxiong
6 months ago

Big fan here. I was wondering when the 0.6.0 version will be available? The review tracking function is very cool but too expensive for a student.

raphaelcasimir
a year ago

This one just never worked for me. Server never got up and running, the container just exits right after it starts.

conoria
a year ago

@cgrima, not sure if you'll see this, but there is a note about this here: https://github.com/sharelatex/sharelatex/wiki/Quick-Start-Guide#latex-environment