-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (54 loc) · 898 Bytes
/
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
version: "3"
services:
web1:
container_name: web-one
restart: always
depends_on:
- redis
build: .
ports:
- "3001:3000"
expose:
- 3001
links:
- redis
web2:
container_name: web-two
restart: always
depends_on:
- redis
build: .
ports:
- "3002:3000"
expose:
- 3002
links:
- redis
mongodb_1:
container_name: mongoDB-one
image: mongo:latest
ports:
- 27017:27017
volumes:
- ./data:/data/db
redis:
container_name: redis-server
image: "redis:latest"
ports:
- "6379:6379"
volumes:
- ./data:/data
haproxy:
container_name: haproxy
image: hypriot/rpi-haproxy
volumes:
- ./haproxy:/haproxy-override
links:
- web1
- web2
ports:
- "8080:80"
- "70:70"
expose:
- "8080"
- "70"