-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1.02 KB
/
docker-compose.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
37
38
39
40
41
42
43
44
45
46
47
48
49
version: '3'
services:
mongo-primary:
image: mongo:4.4.5
container_name: mongo-primary
expose:
- 27017
ports:
- 27017:27017
# networks:
# - batch_network
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
mongo-secondary1:
image: mongo:4.4.5
container_name: mongo-secondary1
expose:
- 27018
ports:
- 27018:27017
# networks:
# - batch_network
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
mongo-secondary2:
image: mongo:4.4.5
container_name: mongo-secondary2
expose:
- 27019
ports:
- 27019:27017
# networks:
# - batch_network
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
mongoku:
image: huggingface/mongoku
container_name: mongoku
ports:
- 3100:3100
depends_on:
- mongo1
- mongo2
- mongo3
# networks:
# - batch_network
environment:
MONGOKU_DEFAULT_HOST: "mongodb://mongo1:27017"