-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (65 loc) · 1.13 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
services:
mongodb-central:
image: 'mongo'
ports:
- 27017:27017
volumes:
- data:/data/db
mongodb-1:
image: 'mongo'
ports:
- 27018:27017
volumes:
- data1:/data/db
mongodb-2:
image: 'mongo'
ports:
- 27019:27017
volumes:
- data2:/data/db
mongodb-3:
image: 'mongo'
ports:
- 27020:27017
volumes:
- data3:/data/db
central:
image: filipmilo/central
ports:
- 3000:3000
environment:
- DB=${LIBRARY_CENTRAL_DB}
depends_on:
- mongodb-central
library1:
image: filipmilo/lib1
ports:
- 8000:8000
environment:
- LIBRARY=${LIBRARY_1}
- DB=${LIBRARY_1_DB}
depends_on:
- mongodb-1
library2:
image: filipmilo/lib2
ports:
- 8001:8000
environment:
- LIBRARY=${LIBRARY_2}
- DB=${LIBRARY_2_DB}
depends_on:
- mongodb-2
library3:
image: filipmilo/lib3
ports:
- 8002:8000
environment:
- LIBRARY=${LIBRARY_3}
- DB=${LIBRARY_3_DB}
depends_on:
- mongodb-3
volumes:
data:
data1:
data2:
data3: