forked from DeviceFarmer/stf
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-dev.yaml
43 lines (43 loc) · 1.02 KB
/
docker-compose-dev.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
39
40
41
42
43
services:
mongo1:
image: mongo:6.0.10
hostname: mongo1
container_name: mongo1
entrypoint: ["mongod", "--replSet", "myReplicaSet", "--bind_ip_all"]
networks:
default:
ipv4_address: 10.211.0.2
mongo2:
image: mongo:6.0.10
hostname: mongo2
container_name: mongo2
entrypoint: ["mongod", "--replSet", "myReplicaSet", "--bind_ip_all"]
networks:
default:
ipv4_address: 10.211.0.3
mongo3:
image: mongo:6.0.10
hostname: mongo3
container_name: mongo3
entrypoint: ["mongod", "--replSet", "myReplicaSet", "--bind_ip_all"]
networks:
default:
ipv4_address: 10.211.0.4
mongosetup:
image: mongo:6.0.10
depends_on:
- mongo1
- mongo2
- mongo3
volumes:
- ./scripts/mongo_setup.sh:/scripts/mongo_setup.sh
restart: "no"
entrypoint: ["bash", "/scripts/mongo_setup.sh"]
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.211.0.0/16
gateway: 10.211.0.1