-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
240 lines (224 loc) · 7.87 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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
version: "3.7"
# Define levels for log file size limits
x-logging-low: &logging-low # Used by: mongo-express-ld, mongodb-ld, quantumleap-ld, mqtt-broker-ld, grafana, portainer, context-server
driver: "json-file"
options:
max-file: 2
max-size: 5m
x-logging-medium: &logging-medium # Used by: orion-ld
driver: "json-file"
options:
max-file: 2
max-size: 10m
x-logging-high: &logging-high # Used by: cratedb-ld, iot-agent-json-ld
driver: "json-file"
options:
max-file: 2
max-size: 50m
services:
orion-ld:
#Sometimes the newest builds fail. Hence, we fixed a stable version that
#probably will be updated once in a while
image: fiware/orion-ld:${ORIONLD_VERSION:-1.5.1}
hostname: orion-ld
container_name: "orion-ld"
restart: always
ports:
- "${ORIONLD_PORT:-1027}:1026"
networks:
- fiware-ld
depends_on:
- mongo-db-ld
environment:
- ORIONLD_LOG_LEVEL=${ORIONLD_LOG_LEVEL:-DEBUG}
- ORIONLD_TMP_TRACES=FALSE #log level is buggy in 1.5.1 (TMP messages in logs for every request)
- ORIONLD_LOG_FOR_HUMANS=${ORIONLD_LOG_FOR_HUMANS:-TRUE}
- ORIONLD_CONTEXT_DOWNLOAD_TIMEOUT=${ORIONLD_CONTEXT_DOWNLOAD_TIMEOUT:-1000}
- ORIONLD_CONTEXT_DOWNLOAD_ATTEMPTS=${ORIONLD_CONTEXT_DOWNLOAD_ATTEMPTS:-5}
- ORIONLD_FORWARDING=${ORIONLD_FORWARDING:-TRUE}
- ORIONLD_STAT_COUNTERS=${ORIONLD_STAT_COUNTERS:-TRUE}
- ORIONLD_STAT_SEM_WAIT=${ORIONLD_STAT_SEM_WAIT:-TRUE}
- ORIONLD_STAT_TIMING=${ORIONLD_STAT_TIMING:-TRUE}
- ORIONLD_STAT_NOTIF_QUEUE=${ORIONLD_STAT_NOTIF_QUEUE:-TRUE}
- ORIONLD_MONGO_HOST=${ORIONLD_MONGO_HOST:-mongo-db-ld}
# - ORIONLD_MONGO_REPLICA_SET=${ORIONLD_MONGO_REPLICA_SET:-rs0}
- ORIONLD_MONGO_DB=${ORIONLD_MONGO_DB:-orionld}
- ORIONLD_MONGO_WRITE_CONCERN=${ORIONLD_MONGO_WRITE_CONCERN:-0}
- ORIONLD_MULTI_SERVICE=${ORIONLD_MULTI_SERVICE:-TRUE}
- ORIONLD_NOTIF_MODE=${ORIONLD_NOTIF_MODE:-persistent}
- ORIONLD_MUTEX_POLICY=${ORIONLD_MUTEX_POLICY:-all}
- ORIONLD_CONN_MEMORY=${ORIONLD_CONN_MEMORY:-128}
logging: *logging-medium
mongo-db-ld:
image: mongo:${MONGODB_VERSION:-5.0.24} #Check https://docs.mongodb.com/manual/release-notes/ im Zweifel 4.2
hostname: mongo-db-ld
container_name: "mongo-db-ld"
restart: always
networks:
- fiware-ld
volumes:
- ${MONGODB_VOLUME_PATH:-mongo-db-ld}:${MONGO_DATA_DIR:-/data/db}
logging: *logging-low
mongo-express-ld:
image: mongo-express:${ME_VERSION:-1.0.2}
hostname: mongo-express-ld
container_name: "mongo-express-ld"
restart: always
ports:
- "${ME_PORT:-8082}:8081"
networks:
- fiware-ld
environment:
- ME_CONFIG_OPTIONS_EDITORTHEME=${ME_CONFIG_OPTIONS_EDITORTHEME:-ambiance}
- ME_CONFIG_MONGODB_URL=${ME_CONFIG_MONGODB_URL_SN:-mongodb://mongo-db-ld:27017}
- ME_CONFIG_MONGODB_ENABLE_ADMIN=${ME_CONFIG_MONGODB_ENABLE_ADMIN:-true}
#- ME_CONFIG_MONGODB_AUTH_DATABASE=admin
- ME_CONFIG_BASICAUTH=${ME_CONFIG_MONGODB_BASICAUTH:-false}
logging: *logging-low
iot-agent-json-ld:
image: fiware/iotagent-json:${IOTA_JSON_VERSION:-1.25.0}
hostname: iot-agent-json-ld
container_name: "iot-agent-json-ld"
restart: always
ports:
- "${IOTA_JSON_PORT:-4042}:${IOTA_JSON_NORTH_PORT:-4041}"
networks:
- fiware-ld
depends_on:
- mongo-db-ld
environment:
- IOTA_MULTI_CORE=${IOTA_JSON_MULTI_CORE:-true}
- IOTA_CB_HOST=${IOTA_JSON_CB_HOST:-orion-ld}
- IOTA_CB_PORT=${IOTA_JSON_CB_PORT:-1026}
- IOTA_NORTH_PORT=${IOTA_JSON_NORTH_PORT:-4041}
- IOTA_REGISTRY_TYPE=${IOTA_JSON_REGISTRY_TYPE:-mongodb}
- IOTA_LOG_LEVEL=${IOTA_JSON_LOG_LEVEL:-DEBUG}
- IOTA_TIMESTAMP=${IOTA_JSON_TIMESTAMP:-true}
- IOTA_CB_NGSI_VERSION=${IOTA_JSON_CB_NGSI_VERSION:-LD}
- IOTA_JSON_LD_CONTEXT=${IOTA_JSON_LD_CONTEXT:-http://context-server:80/building.jsonld}
# - IOTA_FALLBACK_TENANT=${IOTA_JSON_FALLBACK_TENANT:-default}
# - IOTA_FALLBACK_PATH=${IOTA_JSON_FALLBACK_PATH:-/}
- IOTA_AUTOCAST=${IOTA_JSON_AUTOCAST:-false}
- IOTA_EXPLICIT_ATTRS=${IOTA_JSON_EXPLICIT_ATTRS:-true}
- IOTA_MONGO_HOST=${IOTA_JSON_MONGODB_HOST_SN:-mongo-db-ld}
- IOTA_MONGO_PORT=${IOTA_JSON_MONGODB_PORT:-27017}
- IOTA_MONGO_DB=${IOTA_JSON_MONGODB_DB_NAME:-iotagentjson-ld}
- IOTA_PROVIDER_URL=${IOTA_JSON_PROVIDER_URL:-http://iot-agent-json-ld:4041}
- IOTA_DEFAULT_RESOURCE=${IOTA_JSON_DEFAULT_RESOURCE:-/iot/json}
- IOTA_HTTP_PORT=${IOTA_JSON_HTTP_PORT:-7896}
- IOTA_MQTT_HOST=${IOTA_JSON_MQTT_HOST:-mqtt-broker-ld}
- IOTA_MQTT_PORT=${IOTA_JSON_MQTT_PORT:-1883}
# - IOTA_MQTT_USERNAME=${IOTA_JSON_MQTT_USERNAME:-iotagent}
# - IOTA_MQTT_PASSWORD=${IOTA_JSON_MQTT_PASSWORD:-mypassword}
- IOTA_MQTT_PROTOCOL=${IOTA_JSON_MQTT_PROTOCOL:-mqtt}
- IOTA_MQTT_KEEPALIVE=${IOTA_JSON_MQTT_KEEPALIVE:-60}
- IOTA_AMQP_DISABLED=${IOTA_JSON_AMQP_DISABLED:-true}
logging: *logging-high
mqtt-broker-ld:
image: eclipse-mosquitto:${MOSQUITTO_VERSION:-2.0.11}
hostname: mqtt-broker-ld
container_name: mqtt-broker-ld
restart: always
ports:
- "${MOSQUITTO_PORT:-1884}:1883"
networks:
- fiware-ld
volumes:
- ../general/mosquitto.conf:/mosquitto/config/mosquitto.conf
logging: *logging-low
quantumleap-ld:
image: orchestracities/quantumleap:${QL_VERSION:-1.0.0}
hostname: quantumleap-ld
container_name: quantumleap-ld
restart: always
ports:
- "${QL_PORT:-8669}:8668"
networks:
- fiware-ld
environment:
- LOGLEVEL=${QL_LOG_LEVEL:-DEBUG}
- CRATE_HOST=${QL_CRATEDB_HOST_SN:-crate-ld}
# - CRATE_DB_USER=${QL_CRATEDB_USER:-ql}
# - CRATE_DB_PASS=${QL_CRATEDB_PASSWORD:-myqlpassword}
# - REDIS_HOST=${QL_REDIS_HOST:-redis-cache}
# - REDIS_PORT=${QL_REDIS_PORT:-6379}
# - CACHE_QUERIES=${QL_CACHE_QUERIES:-True}
logging: *logging-low
crate-ld:
image: crate:${CRATEDB_VERSION:-4.8.4} # Please check release notes!
hostname: crate-ld
container_name: crate-ld
restart: always
ports:
- "${CRATEDB_Port:-4201}:4200"
networks:
- fiware-ld
volumes:
- ${CRATEDB_VOLUME_PATH:-crate-ld}:${CRATEDB_DATA_DIR:-/data}
environment:
- TZ=${TIMEZONE:-Europe/Berlin}
- CRATE_HEAP_SIZE=${CRATEDB_HEAP_SIZE:-1g}
logging: *logging-high
grafana:
image: grafana/grafana:${GRAFANA_VERSION:-9.3.0}
hostname: grafana
container_name: grafana
restart: always
ports:
- "${GRAFANA_PORT:-3001}:3000"
networks:
- fiware-ld
environment:
- GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-worldmap-panel,grafana-simple-json-datasource
- TZ=${TIMEZONE:-Europe/Berlin}
volumes:
- "grafana:/var/lib/grafana"
logging: *logging-low
portainer:
image: portainer/portainer-ce:${PORTAINER_VERSION:-2.19.4}
hostname: portainer
container_name: portainer
ports:
- "${PORTAINER_PORT:-9000}:9000"
# - "9443:9443"
# - "8000:8000"
networks:
- portainer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
restart: always
logging: *logging-low
context-server:
image: httpd:alpine
hostname: context-server
container_name: context-server
ports:
- "8050:80"
networks:
- fiware-ld
volumes:
- context-files:/usr/local/apache2/htdocs/
restart: always
logging: *logging-low
volumes:
mongo-db-ld:
name: mongodb-ld
crate-ld:
name: crate-ld
grafana:
name: grafana
portainer_data:
name: portainer_data
context-files:
name: context-files
driver: local
driver_opts:
type: none
o: bind
device: ../general/context-files
networks:
fiware-ld:
name: fiware-ld
portainer:
name: portainer