-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.rs1.yml
36 lines (32 loc) · 1 KB
/
docker-compose.rs1.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: "3.7"
# Our containers
services:
base:
&mongo
image: mongo
restart: unless-stopped
env_file:
- .env
networks:
- horizon-net
mongo1_rs1:
<<: *mongo
expose:
- ${DB1_RS1_PORT}
volumes:
- ./mongo-volumes/mongo1_1/data/db:/data/db
entrypoint: ["/usr/bin/mongod", "--bind_ip_all", "--replSet", "${REPLICA_SET_NAME_1}", "--journal", "--dbpath", "/data/db", "--port", "${DB1_RS1_PORT}"]
mongo2_rs1:
<<: *mongo
expose:
- ${DB2_RS1_PORT}
volumes:
- ./mongo-volumes/mongo2_1/data/db:/data/db
entrypoint: ["/usr/bin/mongod", "--bind_ip_all", "--replSet", "${REPLICA_SET_NAME_1}", "--journal", "--dbpath", "/data/db", "--port", "${DB2_RS1_PORT}"]
mongo3_rs1:
<<: *mongo
expose:
- ${DB3_RS1_PORT}
volumes:
- ./mongo-volumes/mongo3_1/data/db:/data/db
entrypoint: ["/usr/bin/mongod", "--bind_ip_all", "--replSet", "${REPLICA_SET_NAME_1}", "--journal", "--dbpath", "/data/db", "--port", "${DB3_RS1_PORT}"]