-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (61 loc) · 1.21 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
services:
frontend:
build: ./front
depends_on:
- backend
volumes:
- ./front:/app
ports:
- 3000:3000
backend:
build: ./back
depends_on:
- mongo1
- mongo2
- mongo3
volumes:
- ./back:/app
- /app/node_modules
ports:
- 4000:4000
mongo1:
container_name: mongo1
restart: always
image: mongo
links:
- mongo2
- mongo3
ports:
- 27017:27017
volumes:
- mongodb1:/data/db
entrypoint: [ "/usr/bin/mongod", "--replSet", "rsmongo", "--bind_ip_all"]
mongo2:
container_name: mongo2
restart: always
image: mongo
ports:
- 27020:27017
volumes:
- mongodb2:/data/db
entrypoint: [ "/usr/bin/mongod", "--replSet", "rsmongo", "--bind_ip_all"]
mongo3:
container_name: mongo3
restart: always
image: mongo
ports:
- 27021:27017
volumes:
- mongodb3:/data/db
entrypoint: [ "/usr/bin/mongod", "--replSet", "rsmongo", "--bind_ip_all"]
mailhog:
image: mailhog/mailhog
logging:
driver: 'none' # disable saving logs
ports:
- 1025:1025 # smtp server
- 8025:8025 # web ui
volumes:
mongodb1:
mongodb2:
mongodb3: