Skip to content

Commit 4b6fb70

Browse files
update README.md
1 parent 1d3b541 commit 4b6fb70

1 file changed

Lines changed: 47 additions & 2 deletions

File tree

README.md

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,47 @@
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/)

0 commit comments

Comments
 (0)