-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscorpio-aaio.yml
130 lines (121 loc) · 3.67 KB
/
scorpio-aaio.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# WARNING: Do not deploy this tutorial configuration directly to a production environment
#
# The tutorial docker-compose files have not been written for production deployment and will not
# scale. A proper architecture has been sacrificed to keep the narrative focused on the learning
# goals, they are just used to deploy everything onto a single Docker machine. All FIWARE components
# are running at full debug and extra ports have been exposed to allow for direct calls to services.
# They also contain various obvious security flaws - passwords in plain text, no load balancing,
# no use of HTTPS and so on.
#
# This is all to avoid the need of multiple machines, generating certificates, encrypting secrets
# and so on, purely so that a single docker-compose file can be read as an example to build on,
# not use directly.
#
# When deploying to a production environment, please refer to the Helm Repository
# for FIWARE Components in order to scale up to a proper architecture:
#
# see: https://github.com/FIWARE/helm-charts/
#
version: "3.5"
services:
zookeeper:
image: zookeeper
hostname: zookeeper
container_name: zookeeper
networks:
- default
ports:
- "2181"
kafka:
image: wurstmeister/kafka
hostname: kafka
container_name: kafka
networks:
- default
ports:
- "9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_PORT: 9092
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- zookeeper
postgres:
image: mdillon/postgis
hostname: postgres
container_name: db-postgres
networks:
- default
ports:
- "5432"
environment:
POSTGRES_USER: ngb
POSTGRES_PASSWORD: ngb
POSTGRES_DB: ngb
reverseproxy:
image: reverseproxy
ports:
- 8080:8080
- 8081:8081
depends_on:
- scorpio
- ngsi-ldes
restart: always
scorpio:
image: scorpiobroker/scorpio:scorpio-aaio-no-eureka_latest
hostname: scorpio
container_name: fiware-scorpio
networks:
- default
ports:
- "9090:9090"
depends_on:
- kafka
- postgres
healthcheck:
test: curl --fail -s http://scorpio:9090/scorpio/v1/info/ || exit 1
test-subscription:
image: test-registration
hostname: test-registration
container_name: test-registration
networks:
- default
ports:
- "3000"
ngsi-ldes:
#image: brechtvdv/ngsi-ldes
image: ngsi-ldes
ports:
- "3001:3001"
depends_on:
- scorpio
networks:
- default
environment:
# Location of the NGSI-LD endpoint
NGSI_HOST: "http://scorpio:9090/ngsi-ld/v1"
# types that the broker contains (will be removed when /types discovery is supported) quotes voor linux bij meerdere types.
# Use timeAt and endTimeAt (v1.3.1) instead of time and endTime
NGSI_USETIMEAT: "true"
NGSI_USECOUNTISTRUE: "true"
# timeProperty (should be modifiedAt or observedAt)
NGSI_TIMEPROPERTY: "modifiedAt"
API_ENABLE_VERSIONING: "false"
API_VERSION_OF_PATH: "dcterms:isVersionOf"
# How long mutable fragments must be cached in seconds
MAX_AGE_MUTABLE_FRAGMENTS: "60"
# OpenID config
NGSI_ISAUTHENTICATED: "false"
SERVER_BASE_URL: "http://localhost:3001/"
SERVER_PORT : "3001"
PUBLIC_BASE_URL: "http://localhost:8081/"
# Limit to use and the number of entities per fragment
API_LIMIT: "5"
# Output KeyValues representation
API_KEYVALUES: "true"
# URL to context registry
NOTIFY_CONTEXT_REGISTRY: "http://scorpio:9090/ngsi-ld/v1"
networks:
default: ~