-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
56 lines (51 loc) · 1.25 KB
/
docker-compose.yaml
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
version: '3'
volumes:
prometheus_data: {}
services:
wasmflow:
build:
context: ./wasmflow
dockerfile: Dockerfile
ports:
- "8060:8060"
volumes:
- ./wasmflow/greet.wafl:/opt/wasmflow/app/greet.wafl
entrypoint:
[
"wasmflow",
"serve",
"/opt/wasmflow/app/greet.wafl",
"--rpc",
"--rpc-port",
"8060",
"--rpc-address",
"0.0.0.0"
]
client:
build:
context: ./client
dockerfile: Dockerfile
volumes:
- ./client/gen_traffic.sh:/opt/wasmflow/app/gen_traffic.sh
entrypoint: "/bin/bash"
command: "/opt/wasmflow/app/gen_traffic.sh"
envoy:
image: envoyproxy/envoy-dev:0d510b808118afa0073e820409061f6f7ed1aa3a
ports:
- "9901:9901"
- "8080:8080"
volumes:
- ./envoy/envoy.yaml:/etc/envoy/envoy.yaml
- ./envoy/json.lua:/lua/json.lua
- ./envoy/convert.lua:/lua/convert.lua
- ./envoy/wasmflow.pb:/etc/envoy/wasmflow.pb
prometheus:
image: prom/prometheus:v2.37.0
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yaml'
- '--storage.tsdb.path=/prometheus'
ports:
- 9090:9090