-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
37 lines (33 loc) · 1019 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
version: '3.2'
services:
api:
image: iil3i/api-proxy:0.0.1.pre-release-4
environment:
- V1_UPSTREAMS=foo_service_v1_u1 foo_service_v1_u2 foo_service_v1_u3
- V2_UPSTREAMS=foo_service_v2_u1 foo_service_v2_u2 foo_service_v2_u3
- V3_UPSTREAMS=foo_service_v3_u1 foo_service_v3_u2 foo_service_v3_u3
volumes:
- ./services.yaml.tmpl:/services.yaml.tmpl
ports:
- "1731:80"
# upstreams for v1
foo_service_v1_u1:
image: nginxdemos/hello:plain-text
foo_service_v1_u2:
image: nginxdemos/hello:plain-text
foo_service_v1_u3:
image: nginxdemos/hello:plain-text
# upstreams for v2
foo_service_v2_u1:
image: nginxdemos/hello:plain-text
foo_service_v2_u2:
image: nginxdemos/hello:plain-text
foo_service_v2_u3:
image: nginxdemos/hello:plain-text
# upstreams for v3
foo_service_v3_u1:
image: nginxdemos/hello:plain-text
foo_service_v3_u2:
image: nginxdemos/hello:plain-text
foo_service_v3_u3:
image: nginxdemos/hello:plain-text