Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Commit

Permalink
Unify mongo connection (#377)
Browse files Browse the repository at this point in the history
* Unify mongo connection

the database name was inconsistent and the docker-compose image names as well
now every mongo connection string should be similar

it closes #322

* container-name: replace container name

it should be "db" instead of "mongo"
  • Loading branch information
vcapretz authored and geekgonecrazy committed Sep 23, 2017
1 parent ad646be commit 3ca6a8b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion 3. Installation/2. PaaS Deployments/Aliyun/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ db:
web:
image: rocketchat/rocket.chat
environment:
- MONGO_URL=mongodb://db:27017/meteor
- MONGO_URL=mongodb://db:27017/rocketchat
- ROOT_URL=http://your-ip-address:8818
links:
- db:db
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

5. install a docker image for rocketchat and connect it to mongodb. `ROOT:URL` should be substituted your own:

`sudo docker run --name rocketchat -p 80:3000 --env ROOT_URL=https://www.test.com --env MONGO_URL=mongodb://db/meteor --link db -d rocketchat/rocket.chat`
`sudo docker run --name rocketchat -p 80:3000 --env ROOT_URL=https://www.test.com --env MONGO_URL=mongodb://db/rocketchat --link db -d rocketchat/rocket.chat`

You are now runing rocket chat on compute engine. You can open a browser with the external IP of the instance.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ db:
- ./data/dump:/dump
command: mongod --smallfiles
web:
image: rocketchat/rocket.chat
image: rocketchat/rocket.chat
environment:
- MONGO_URL=mongodb://db:27017/meteor
- MONGO_URL=mongodb://db:27017/rocketchat
- ROOT_URL=https://rocketchat.test
- MAIL_URL=smtp://USERNAME:PASSWORD@HOST:PORT/
links:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Please make sure:

* you have at least 4 GB of memory on your Windows 10 Pro machine
* you are running 64 bit edition of Windows 10 Pro
* you are running 64 bit edition of Windows 10 Pro
* you have the latest updates installed, and no updates pending
* you have enabled Hyper-V (requires a reboot, go to Control Panel -> Add Windows Components -> Hyper-V)
* you have at least 20 GB of disk space, preferably SSD
Expand All @@ -12,9 +12,9 @@ Please make sure:

* Download and install [Docker for Windows](https://docs.docker.com/docker-for-windows/)
* Create a file named `docker-compose.yml` that contains:

```
mongo:
db:
image: mongo:3.0
command: mongod --smallfiles --oplogSize 128
Expand All @@ -23,7 +23,7 @@ rocketchat:
environment:
- PORT=3000
- ROOT_URL=http://docker:3000
- MONGO_URL=mongodb://mongo:27017/rocketchat
- MONGO_URL=mongodb://db:27017/rocketchat
links:
- mongo:mongo
ports:
Expand Down

0 comments on commit 3ca6a8b

Please sign in to comment.