mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 04:13:50 +00:00
Update README.md
This commit is contained in:
parent
7bcecf38c1
commit
8b26d251cb
1 changed files with 7 additions and 3 deletions
10
README.md
10
README.md
|
@ -7,7 +7,11 @@ short but contains some important information.**
|
||||||
The recommended way to install and run ShareLaTeX Community Edition is via [Docker](https://www.docker.com/):
|
The recommended way to install and run ShareLaTeX Community Edition is via [Docker](https://www.docker.com/):
|
||||||
|
|
||||||
```
|
```
|
||||||
$ docker run -d -v ~/sharelatex_data:/var/lib/sharelatex -p 80 --name=sharelatex sharelatex/sharelatex
|
$ docker run -d \
|
||||||
|
-v ~/sharelatex_data:/var/lib/sharelatex \
|
||||||
|
-p 5000:80 \
|
||||||
|
--name=sharelatex \
|
||||||
|
sharelatex/sharelatex
|
||||||
```
|
```
|
||||||
|
|
||||||
This will download the ShareLaTeX image and start it running in the background on port 80. You should be able to access it at http://localhost/.
|
This will download the ShareLaTeX image and start it running in the background on port 80. You should be able to access it at http://localhost/.
|
||||||
|
@ -71,7 +75,7 @@ want to access services on the host machine then you should use `dockerhost`.
|
||||||
```
|
```
|
||||||
$ docker run -d \
|
$ docker run -d \
|
||||||
-v ~/sharelatex_data:/var/lib/sharelatex \
|
-v ~/sharelatex_data:/var/lib/sharelatex \
|
||||||
-p 80 \
|
-p 5000:80 \
|
||||||
--name=sharelatex \
|
--name=sharelatex \
|
||||||
--env SHARELATEX_MONGO_URL=mongodb://dockerhost/sharelatex \
|
--env SHARELATEX_MONGO_URL=mongodb://dockerhost/sharelatex \
|
||||||
sharelatex/sharelatex
|
sharelatex/sharelatex
|
||||||
|
@ -143,7 +147,7 @@ You can pass configuration options to ShareLaTeX as environment variables:
|
||||||
```
|
```
|
||||||
$ docker run -d \
|
$ docker run -d \
|
||||||
-v ~/sharelatex_data:/var/lib/sharelatex \
|
-v ~/sharelatex_data:/var/lib/sharelatex \
|
||||||
-p 80 \
|
-p 5000:80 \
|
||||||
--name=sharelatex \
|
--name=sharelatex \
|
||||||
--env SHARELATEX_MONGO_URL=mongodb://my.mongo.host/sharelatex \
|
--env SHARELATEX_MONGO_URL=mongodb://my.mongo.host/sharelatex \
|
||||||
sharelatex/sharelatex
|
sharelatex/sharelatex
|
||||||
|
|
Loading…
Reference in a new issue