-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprocess-compose.yaml
51 lines (41 loc) · 1.65 KB
/
process-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
version: "0.5"
environment:
- RUST_LOG=info
processes:
redis:
command: echo 'requirepass changeme!' | keydb-server - --save "" --appendonly no
marshal_0:
command: cargo run --bin marshal -- -d "redis://:changeme!@localhost:6379"
broker_0:
command: cargo run --bin broker -- -d "redis://:changeme!@localhost:6379" --metrics-bind-endpoint localhost:9090
# Note: `local_ip` is a special value that will be replaced with the host's local IP address
broker_1:
command: cargo run --bin broker --release --
--public-bind-endpoint 0.0.0.0:1740
--public-advertise-endpoint local_ip:1740
--private-bind-endpoint 0.0.0.0:1741
--private-advertise-endpoint local_ip:1741
--metrics-bind-endpoint localhost:9091
-d "redis://:changeme!@localhost:6379"
heavy_load:
command: cargo run --bin bad-sender -- -m "127.0.0.1:1737"
depends_on:
marshal_0:
condition: process_started
# Uncomment the following lines to run misbehaving processes and the Tokio console
# broker_tokio_console:
# command: CARGO_TARGET_DIR="target/unstable" RUSTFLAGS="--cfg tokio_unstable"
# cargo run --bin broker --
# -d "redis://:changeme!@localhost:6379"
# --public-bind-endpoint 0.0.0.0:1742
# --public-advertise-endpoint local_ip:1742
# --private-bind-endpoint 0.0.0.0:1743
# --private-advertise-endpoint local_ip:1743
# bad_broker:
# command: cargo run --bin bad-broker --
# -d "redis://:changeme!@localhost:6379"
# bad_connector:
# command: cargo run --bin bad-connector -- -m "127.0.0.1:1737"
# depends_on:
# marshal_0:
# condition: process_started