File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # MongoDB-Replication-Set-docker-compose
2- MongoDB Replication Set with Docker Compose
1+ # Local MongoDB Replica Set deployment with docker-compose
2+
3+ Local setup MongoDB server with replication set using docker-compose
4+
5+ The MongoDB database connector uses transactions to support nested writes.
6+ We get errors if we try to actually write to a database that does not have replication.
7+
8+ ### You have two solutions:
9+
10+ 1 . Use [ MongoDB Atlas] ( https://www.mongodb.com/atlas/database ) . It is a free-service where we can create MongoDB cluster that supports replication.
11+ 2 . Setup a local MongoDB server with replication
12+
13+
14+ ## Installation
15+
16+ Clone the project
17+
18+ ``` bash
19+ git clone
[email protected] :AlaeddineMessadi/Mongodb-Replica-Set-docker-compose.git mongodb-replset
20+ ```
21+
22+ Go to the project directory
23+
24+ ``` bash
25+ cd mongodb-replset
26+ ```
27+
28+ Start the server
29+
30+ ``` bash
31+ ./start_db.sh
32+ ```
33+
34+
35+ ## Tech Stack
36+
37+ - Docker (docker-compose)
38+ - YAML
39+ - Bash
40+
41+ ## Contributing
42+
43+ Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
44+
45+ ## License
46+
47+ [ MIT] ( https://choosealicense.com/licenses/mit/ )
You can’t perform that action at this time.
0 commit comments