-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (40 loc) · 942 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
version: '2'
services:
webtodel1:
container_name: todel1
image: todel
ports:
- "5000"
volumes:
- .:/go/src/github.com/mecusorin/SampleGoRedisDockerNginx/main
depends_on:
- redis
webtodel2:
container_name: todel2
image: todel
ports:
- "5000"
volumes:
- .:/go/src/github.com/mecusorin/SampleGoRedisDockerNginx/main
depends_on:
- redis
webtodel3:
container_name: todel3
image: todel
ports:
- "5000"
volumes:
- .:/go/src/github.com/mecusorin/SampleGoRedisDockerNginx/main
depends_on:
- redis
redis:
image: redis
loadbalancer:
container_name: todelLoadBalancer
image: loadbalancer-nginx
ports:
- "5000:80"
links:
- "webtodel1"
- "webtodel2"
- "webtodel3"