forked from mnaboka/envoy-control-plane-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (36 loc) · 877 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
version: "3"
services:
control-plane:
build:
context: ./
dockerfile: Dockerfile
command: ["/go/bin/control-plane"]
ports:
- "5678:5678"
- "8000:8000"
envoy:
image: envoyproxy/envoy:v1.11.1
ports:
- "9901:9901"
- "3000:3000"
environment:
- ENVOY_CONFIG_PATH=/config.yaml
command: /usr/local/bin/envoy -l trace -c /config.yaml
volumes:
- "./assets/config.yaml:/config.yaml"
depends_on:
- control-plane
test-server-dev:
image: envoy-control-plane-example_control-plane:latest
command: ["/go/bin/server"]
environment:
- ENV=development
depends_on:
- control-plane
test-server-prod:
image: envoy-control-plane-example_control-plane:latest
command: ["/go/bin/server"]
environment:
- ENV=production
depends_on:
- control-plane