-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev-mongodb.yaml
38 lines (34 loc) · 1.06 KB
/
docker-compose-dev-mongodb.yaml
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
37
38
services:
primary-dev-mongodb:
image: mongo:8.0.0
volumes:
- development-mongodb-data:/data/db
- ./mongodb/scripts/initializingReplSetScript.js:/scripts/initializingReplSetScript.js
- ./mongodb/configs/developmentReplSetConfig.js:/configs/developmentReplSetConfig.js
networks:
- development-network
container_name: primary-dev-db
ports:
- 27001:27017
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "dev-llms-tdm-set" ]
secondary-dev-mongodb-1:
image: mongo:8.0.0
networks:
- development-network
container_name: secondary-dev-db-1
ports:
- 27002:27017
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "dev-llms-tdm-set" ]
secondary-dev-mongodb-2:
image: mongo:8.0.0
networks:
- development-network
container_name: secondary-dev-db-2
ports:
- 27003:27017
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "dev-llms-tdm-set" ]
networks:
development-network:
driver: bridge
volumes:
development-mongodb-data: