-
Notifications
You must be signed in to change notification settings - Fork 0
/
agent.opcua.yml
80 lines (76 loc) · 2.94 KB
/
agent.opcua.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
# Copyright 2022 Engineering Ingegneria Informatica S.p.A.
#
# This file is part of the IoT Agent for the OPCUA protocol (iotagent-opcua) component
#
# iotagent-opcua is free software: you can redistribute it and/or
# modify it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the License,
# or (at your option) any later version.
#
# iotagent-opcua is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public
# License along with iotagent-opcua.
# If not, see http://www.gnu.org/licenses/.
#
# For those usages not covered by the GNU Affero General Public License
version: "3.1"
volumes:
mongodb: ~
services:
iot-agent:
image: iotagent4fiware/iotagent-opcua:latest
hostname: iotagent-opcua
depends_on:
- mongodb
ports:
- "4041:4041"
- "9229:9229"
environment:
- "IOTA_LOGLEVEL=DEBUG"
- "IOTA_TIMESTAMP=true"
- "IOTA_CB_URL=${CONTEXT_BROKER_URL}"
- "IOTA_CB_NGSIVERSION=LD"
- "IOTA_CB_NGSILDCONTEXT=${CONTEXT_FILE}"
- "IOTA_CB_SERVICE=openiot"
- "IOTA_CB_SUBSERVICE=/"
- "IOTA_NORTH_PORT=4041"
- "IOTA_REGISTRY_TYPE=mongodb"
- "IOTA_MONGO_HOST=mongodb"
- "IOTA_MONGO_PORT=27017"
- "IOTA_MONGO_DB=iotagent_opcua"
- "IOTA_SERVICE=openiot"
- "IOTA_SUBSERVICE=/"
- "IOTA_PROVIDER_URL=http://iotagent-opcua:4041"
- "IOTA_DEVICEREGDURATION=P20Y"
- "IOTA_DEFAULTTYPE=Device"
- "IOTA_DEFAULTRESOURCE=/iot/opcu"
- "IOTA_EXPLICITATTRS=true"
- "IOTA_EXTENDED_FORBIDDEN_CHARACTERS=[]"
- "IOTA_AUTOPROVISION=true"
- "IOTA_OPCUA_ENDPOINT=opc.tcp://34.142.142.99:4840/freeopcua/server/"
- "IOTA_OPCUA_SECURITY_MODE=None"
- "IOTA_OPCUA_SECURITY_POLICY=None"
#- "IOTA_OPCUA_SECURITY_USERNAME=null"
#- "IOTA_OPCUA_SECURITY_PASSWORD=null"
- "IOTA_OPCUA_UNIQUE_SUBSCRIPTION=false"
- "IOTA_OPCUA_SUBSCRIPTION_NOTIFICATIONS_PER_PUBLISH=1000"
- "IOTA_OPCUA_SUBSCRIPTION_PUBLISHING_ENABLED=true"
- "IOTA_OPCUA_SUBSCRIPTION_REQ_LIFETIME_COUNT=100"
- "IOTA_OPCUA_SUBSCRIPTION_REQ_MAX_KEEP_ALIVE_COUNT=10"
- "IOTA_OPCUA_SUBSCRIPTION_REQ_PUBLISHING_INTERVAL=1000"
- "IOTA_OPCUA_SUBSCRIPTION_PRIORITY=128"
- "IOTA_OPCUA_MT_POLLING=false"
- "IOTA_OPCUA_MT_AGENT_ID="
- "IOTA_OPCUA_MT_ENTITY_ID=TemperatureSensor001"
- "IOTA_OPCUA_MT_ENTITY_TYPE=Device"
- "IOTA_OPCUA_MT_NAMESPACE_IGNORE=0,7"
- "IOTA_OPCUA_MT_STORE_OUTPUT=true"
volumes:
- ./opcua:/opt/iotagent-opcua/conf
networks:
hostnet: