Skip to content

Commit 64bdeb5

Browse files
committed
Add initial compose file
1 parent 7137437 commit 64bdeb5

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

docker-compose.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
version: '3'
2+
services:
3+
mongodb1:
4+
image: mongo:6.0
5+
container_name: mongodb1
6+
command: mongod --replSet rs0 --bind_ip_all
7+
volumes:
8+
- mongodb1_data:/data/db
9+
ports:
10+
- 27027:27017
11+
networks:
12+
- mongodbcluster
13+
mongodb2:
14+
image: mongo:6.0
15+
container_name: mongodb2
16+
command: mongod --replSet rs0 --bind_ip_all
17+
volumes:
18+
- mongodb2_data:/data/db
19+
ports:
20+
- 27028:27017
21+
networks:
22+
- mongodbcluster
23+
mongodb3:
24+
image: mongo:6.0
25+
container_name: mongodb3
26+
command: mongod --replSet rs0 --bind_ip_all
27+
volumes:
28+
- mongodb3_data:/data/db
29+
ports:
30+
- 27029:27017
31+
networks:
32+
- mongodbcluster
33+
volumes:
34+
mongodb1_data:
35+
mongodb2_data:
36+
mongodb3_data:
37+
networks:
38+
mongodbcluster:

0 commit comments

Comments
 (0)