-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yaml
44 lines (39 loc) · 1.03 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
#
# This Docker Compose file will create a complete system to run this demo.
#
version: '2.1'
services:
pravega:
image: pravega/pravega:0.2.1
ports:
- "9090:9090"
- "12345:12345"
command: standalone
environment:
HOST_IP: ${PRAVEGA_HOST_ADDRESS:-pravega}
gateway:
image: claudiofahey/taxidemo_gateway
build:
context: gateway
ports:
- "3000:3000"
environment:
PRAVEGA_CONTROLLER: tcp://${PRAVEGA_HOST_ADDRESS:-pravega}:${PRAVEGA_PORT:-9090}
PRAVEGA_MIN_NUM_SEGMENTS: "2"
PRAVEGA_SCOPE: "iot"
PRAVEGA_TARGET_RATE_EVENTS_PER_SEC: "50"
ROUTING_KEY_ATTRIBUTE_NAME: "trip_id"
restart: on-failure
streaming_data_generator:
image: claudiofahey/taxidemo_streaming_data_generator
build:
context: streaming_data_generator
command:
- ./streaming_data_generator.py
- --gateway-url
- http://gateway:3000/data
- --fast-forward-from-minutes-ago
- "720"
- /data/data.json/*.json
volumes:
- ./data:/data:ro