Skip to content

Instantly share code, notes, and snippets.

@mustafaakin
Last active July 20, 2016 08:16
Show Gist options
  • Save mustafaakin/3f20c4ce3734d3ceee5337d1f5c2ce40 to your computer and use it in GitHub Desktop.
Save mustafaakin/3f20c4ce3734d3ceee5337d1f5c2ce40 to your computer and use it in GitHub Desktop.
ShareLatex Docker Compose
version: '2'
services:
redis:
image: redis:3
mongo:
image: mongo:2.6
restart: always
volumes:
- "./data/mongo:/data/db"
latex:
depends_on:
- mongo
- redis
image: sharelatex/sharelatex
links:
- mongo
- redis
ports:
- "80:80"
restart: always
volumes:
- "./data/sharelatex:/var/lib/sharelatex"
environment:
SHARELATEX_SITE_URL: http://latex.ourdomain.net
SHARELATEX_REDIS_HOST: redis
SHARELATEX_MONGO_URL: mongodb://mongo/sharelatex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment