-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
65 lines (59 loc) · 1.67 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
version: "2.2"
services:
pulsar:
image: apachepulsar/pulsar:2.4.0
ports:
- 6650:6650
- 8080:8080
entrypoint: bin/pulsar standalone
volumes:
- pulsdata:/pulsar/data
consumer:
image: bpoole908/key-shared-test-java:latest
command: [
"java",
"-cp",
"target/key-shared-test-0.0.1-lib.jar",
"core.CollectorMain"
]
environment:
SERVICE_URL: "pulsar://pulsar:6650" #"pulsar://192.168.99.100:30002";
TOPIC: "persistent://public/default/key_shared"
PRODUCE_TOPIC: "persistent://public/default/key_shared_stats"
SUBSCRIPTION: "key-shared"
SLEEP_TIME: 3000
TIME_OUT: 0
restart: on-failure:5
scale: 3
producer:
image: bpoole908/key-shared-test-java:latest
command: [
"java",
"-cp",
"target/key-shared-test-0.0.1-lib.jar",
"core.CreatorMain"
]
environment:
SERVICE_URL: "pulsar://pulsar:6650" #"pulsar://192.168.99.100:30002";
SERVICE_HTTP_URL: "http://pulsar:8080"
TOPIC: "persistent://public/default/key_shared"
SUBSCRIPTION: "key-shared"
BEFORE_START: 20000
N_MESSAGES: 100
restart: on-failure:5
visualize:
image: bpoole908/key-shared-test-python:latest
command: ["python", "-um", "dashboard.key-share-dash"]
ports:
- 8050:8050
environment:
SERVICE_URL: "pulsar://pulsar:6650"
TOPIC: "persistent://public/default/key_shared_stats"
SUBSCRIPTION: "key-shared-stats"
TIMEOUT: .1
SLEEP_TIME: 5
RETRIES: 10
PYTHONUNBUFFERED: 0 # Allows python print to be seen from docker logs.
restart: on-failure:5
volumes:
pulsdata: