-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9122af
commit 5092ed1
Showing
1 changed file
with
39 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,61 @@ | ||
version: "3" | ||
version: "3.2" | ||
|
||
services: | ||
iotcarsrv: | ||
hostname: iotcarsrv | ||
image: iotagent4fiware/opcuacarsrv:latest | ||
volumes: | ||
- ./CARCONF/car_config.json:/opt/opc-ua-car-server/Car/Car1/config/car_config.json | ||
networks: | ||
- hostnet | ||
ports: | ||
- "5001:5001" | ||
|
||
iotage: | ||
hostname: iotage | ||
image: iotagent4fiware/iotagent-opcua:latest | ||
networks: | ||
- hostnet | ||
- iotnet | ||
ports: | ||
- "4001:4001" | ||
- "4081:8080" | ||
depends_on: | ||
- iotcarsrv | ||
- iotmongo | ||
- orion | ||
volumes: | ||
- ./AGECONF:/opt/iotagent-opcua/conf | ||
- ./certificates:/opt/iotagent-opcua/certificates | ||
environment: | ||
- IOTA_REGISTRY_TYPE=mongodb #Whether to hold IoT device info in memory or in a database | ||
- IOTA_LOG_LEVEL=DEBUG # The log level of the IoT Agent | ||
- IOTA_MONGO_HOST=iot_mongo # The host name of MongoDB | ||
- IOTA_MONGO_DB=iotagent_opcua # The name of the database used in mongoDB | ||
- IOTA_CB_NGSI_VERSION=ld #comment if you mind using NGSIv2 | ||
- IOTA_JSON_LD_CONTEXT=https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld #comment if you mind using NGSIv2 | ||
- IOTA_FALLBACK_TENANT=opcua_car | ||
- IOTA_RELAX_TEMPLATE_VALIDATION=true | ||
|
||
iotmongo: | ||
hostname: iot_mongo | ||
mongo-db: | ||
image: mongo:4.2 | ||
hostname: mongo-db | ||
ports: | ||
- "27017:27017" | ||
networks: | ||
- iotnet | ||
- hostnet | ||
command: --bind_ip_all | ||
volumes: | ||
- iot_mongo_data:/data/db | ||
- iot_mongo_conf:/data/configdb | ||
|
||
################ OCB ################ | ||
- mongo-db:/data | ||
|
||
orion: | ||
image: fiware/orion:latest | ||
hostname: orion | ||
image: fiware/orion-ld:0.7.0 #replace with orion:latest if you mind using NGSIv2 | ||
networks: | ||
- hostnet | ||
- ocbnet | ||
ports: | ||
- "1026:1026" | ||
container_name: fiware-orion | ||
depends_on: | ||
- orion_mongo | ||
command: -statCounters -dbhost orion_mongo -logLevel INFO -forwarding | ||
|
||
orion_mongo: | ||
hostname: orion_mongo | ||
image: mongo:4.2 | ||
- mongo-db | ||
networks: | ||
- ocbnet | ||
- hostnet | ||
ports: | ||
- "27017:27017" | ||
volumes: | ||
- orion_mongo_data:/data/db | ||
- orion_mongo_conf:/data/configdb | ||
command: --nojournal | ||
|
||
volumes: | ||
iot_mongo_data: | ||
iot_mongo_conf: | ||
orion_mongo_data: | ||
orion_mongo_conf: | ||
- "1026:1026" # localhost:1026 | ||
command: -dbhost mongo-db -logLevel INFO | ||
healthcheck: | ||
test: curl --fail -s http://orion:1026/version || exit 1 | ||
interval: 5s | ||
|
||
# iotcarsrv_freeboard: | ||
# hostname: iotcarsrv_freeboard | ||
# image: iotcarsrv-freeboard #iotagent4fiware/iotcarsrv-freeboard:1.0 | ||
# networks: | ||
# - hostnet | ||
# ports: | ||
# - "8502:9080" | ||
# depends_on: | ||
# - iotcarsrv | ||
# - orion | ||
# environment: | ||
# - NODE_ENV=production | ||
# - PORT=9080 | ||
# - "ORION_URL=http://orion:1026" | ||
# - "FIWARE_SERVICE=opcua_car" | ||
# - "FIWARE_SERVICEPATH=/demo" | ||
# - "ENTITY_ID=age01_Car" | ||
# - "ENTITY_TYPE=Device" | ||
|
||
networks: | ||
hostnet: | ||
iotnet: | ||
ocbnet: | ||
|
||
volumes: | ||
mongo-db: |