mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
added example docker compose file
This commit is contained in:
parent
5bc0e529d5
commit
e5808c2933
1 changed files with 39 additions and 0 deletions
39
server-ce/docker-compose.yml
Normal file
39
server-ce/docker-compose.yml
Normal file
|
@ -0,0 +1,39 @@
|
|||
version: '2'
|
||||
services:
|
||||
sharelatex:
|
||||
restart: always
|
||||
image: sharelatex/sharelatex
|
||||
container_name: sharelatex
|
||||
depends_on:
|
||||
- mongo
|
||||
- redis
|
||||
privileged: true
|
||||
ports:
|
||||
- 80:80
|
||||
links:
|
||||
- mongo
|
||||
- redis
|
||||
volumes:
|
||||
- ~/sharelatex_data:/var/lib/sharelatex
|
||||
environment:
|
||||
SHARELATEX_MONGO_URL: mongodb://mongo/sharelatex
|
||||
SHARELATEX_REDIS_HOST: redis
|
||||
SHARELATEX_APP_NAME: 'ShareLaTeX'
|
||||
|
||||
mongo:
|
||||
restart: always
|
||||
image: mongo
|
||||
container_name: mongo
|
||||
expose:
|
||||
- 27017
|
||||
volumes:
|
||||
- ~/mongo_data:/data/db
|
||||
|
||||
redis:
|
||||
restart: always
|
||||
image: redis
|
||||
container_name: redis
|
||||
expose:
|
||||
- 6379
|
||||
volumes:
|
||||
- ~/redis_data:/data
|
Loading…
Reference in a new issue