-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
97 lines (88 loc) · 1.76 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3'
services:
haproxy:
image: "haproxy"
ports:
- 8000:80
networks:
bench:
aliases:
- proxy
depends_on:
- backend
volumes:
- "./images/haproxy:/usr/local/etc/haproxy/"
command: haproxy -f /usr/local/etc/haproxy/haproxy.cfg
sozu:
image: "clevercloud/sozu"
ports:
- 8000:80
networks:
bench:
aliases:
- proxy
depends_on:
- backend
volumes:
- sozu-socket:/var/run/sozu
- ./images/sozu:/usr/local/etc/sozu/
command: /sozu start -c /usr/local/etc/sozu/config.toml
traefik:
image: "traefik"
networks:
bench:
aliases:
- proxy
ports:
- 8000:80 #HTTP port
- 8080:8080 #Webapi
depends_on:
- backend
volumes:
- ./images/traefik:/etc/traefik/
- /var/run/docker.sock:/var/run/docker.sock #Maybe we should let traefik discover the backend alone
command: traefik -c /etc/traefik/config.toml
envoy:
image: "envoy"
build: ./images/envoy
ports:
- 8000:10000
- 9901:9901
networks:
bench:
aliases:
- proxy
depends_on:
- backend
volumes:
- ./images/envoy/configs:/etc/envoy/
backend:
build: ./backend
networks:
bench:
ipv4_address: 172.16.238.200 # Currently Sozu can't process a DNS resolution
ports:
- 1026:1026
backend-nginx:
build: ./backend-nginx
networks:
- bench
ports:
- 1026:1026
client:
build: ./client
networks:
- bench
depends_on:
- backend
ports:
- 4200:4200
networks:
bench:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.238.0/24
volumes:
sozu-socket: