mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-30 22:04:09 +00:00
Update README.md
This commit is contained in:
parent
e0ce15e10c
commit
7bcecf38c1
1 changed files with 18 additions and 4 deletions
22
README.md
22
README.md
|
@ -36,16 +36,30 @@ ShareLaTeX depends on [MongoDB](http://www.mongodb.org/) (must be 2.4 or later),
|
|||
[Redis](http://redis.io/) (must be version 2.6.12 or later).
|
||||
These should be running on the host system.
|
||||
|
||||
By default the ShareLaTeX Docker container looks for these running on the host
|
||||
machine at port 27017 (for Mongo) and port 6379 (for Redis). These are the defaults
|
||||
ports for both databases so you shouldn't need to change them.
|
||||
|
||||
Note that Docker containers each come with their own network stack, and Mongo and Redis
|
||||
often listen by default on `127.0.0.1` which is not accessible on the host
|
||||
from inside the Docker container. Instead, you should configure Mongo and Redis to
|
||||
also listen on `172.17.42.1` (or whatever ip iddress the docker0 interface has on your
|
||||
host). This can be done in `/etc/mongod.conf` and `/etc/redis/redis.conf`.
|
||||
|
||||
```
|
||||
# /etc/mongod.conf
|
||||
...
|
||||
bind_ip = 172.17.42.1
|
||||
...
|
||||
```
|
||||
|
||||
```
|
||||
# /etc/redis/redis.conf
|
||||
...
|
||||
bind 172.17.42.1
|
||||
...
|
||||
```
|
||||
|
||||
By default the ShareLaTeX Docker container looks for these running on the host
|
||||
machine at port 27017 (for Mongo) and port 6379 (for Redis). These are the defaults
|
||||
ports for both databases so you shouldn't need to change them.
|
||||
|
||||
If you want to point ShareLaTeX at a database in a different location, you can
|
||||
configure the container with environment variables. See the **Configuration Options**
|
||||
section below.
|
||||
|
|
Loading…
Reference in a new issue