-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (56 loc) · 1.04 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
version: "3"
services:
nginx:
build: ./.nginx
links:
- node1:node1
- node2:node2
- node3:node3
depends_on:
- node1
- node2
- node3
ports:
- "8080:80"
networks:
- app-network
node1:
image: scalable-node_src:1.0
ports:
- "3000:3000"
env_file: ./src/.env
environment:
- INSTANCE=node1
networks:
- app-network
node2:
image: scalable-node_src:1.0
ports:
- "3001:3000"
env_file: ./src/.env
environment:
- INSTANCE=node2
networks:
- app-network
node3:
image: scalable-node_src:1.0
ports:
- "3002:3000"
env_file: ./src/.env
environment:
- INSTANCE=node3
networks:
- app-network
database:
image: "mongo"
env_file: ./src/.env
volumes:
- ./.mongo/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- ./mongo-volume:/data/db
ports:
- "27017-27019:27017-27019"
networks:
- app-network
networks:
app-network:
driver: bridge