-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-ngsild.yml
68 lines (67 loc) · 1.59 KB
/
docker-compose-ngsild.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
66
67
68
version: '3'
services:
zookeeper:
image: zookeeper
ports:
- "2181"
logging:
driver: none
kafka:
image: bitnami/kafka
ports:
- "9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_PORT: 9092
KAFKA_LOG_RETENTION_MS: 10000
KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS: 5000
ALLOW_PLAINTEXT_LISTENER: "yes"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- zookeeper
logging:
driver: none
postgres:
image: postgis/postgis
ports:
- "5432:5432"
environment:
POSTGRES_USER: ngb
POSTGRES_PASSWORD: ngb
POSTGRES_DB: ngb
logging:
driver: none
# volumes:
# - /custom/mount:/var/lib/postgresql/data
scorpio:
image: scorpiobroker/all-in-one-runner:spring-kafka-latest
ports:
- "9090:9090"
depends_on:
- postgres
- kafka
redis:
image: redis:6
command: redis-server --appendonly yes
ports:
- 6379:6379
replicator:
build: .
environment:
URLS: https://treecg.github.io/Blue-Bike-to-OSLO/root.ttl
STATE_CONFIG: '{"id":"replicator_0", "host":"redis", "port":6379}'
POLL_INTERVAL: '5000'
REQ_PER_MINUTE: '6'
CONNECTORS: '[0]'
CONNECTOR_0_TYPE: '@treecg/connector-write-ngsi-ld'
CONNECTOR_0_CONFIG: '{
"tokenEndpoint": "",
"clientId": "",
"clientSecret": "",
"ngsiEndpoint": "http://scorpio:9090/ngsi-ld/v1/"
}'
depends_on:
- redis
- scorpio