Commit a126b251 authored by Rita Sousa's avatar Rita Sousa
Browse files

Added docker-compose for time, energy and communications and minor changes to setupForDataclay.sh

parent 1e0df713
version: '3.5'
networks:
default:
external:
name: nuvlabox-shared-network
services:
mosquitto:
image: eclipse-mosquitto:1.6.12
ports:
- "1884:1884"
volumes:
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
nfrtool:
image: elasticeuh2020/nfrtoolte:dev20210504
container_name: elastic_nfrtoolte
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- LOGICMODULE_PORT_TCP=11034
- LOGICMODULE_HOST=192.168.60.28
- USER=NFRtoolUser
- PASS=${PASS:-defaultPass}
- DATASET=${DATASET:-defaultDS}
- NAMESPACE=ElasticNFR
- CENTRAL_MQ_URL=tcp://192.168.60.28:1884
nfrtool-comms:
image: elasticeuh2020/nfrtool-comms:dev20210517
build: ./app
network_mode: host
depends_on:
- mosquitto
- telemetry
volumes:
- /opt/dataclay/shared:/srv/dataclay/shared
environment:
- DC_VOL_PATH=/root/dataclay
- DC_SHARED_VOLUME=/srv/dataclay/shared
- USER=NFRtoolUser
- PASS=defaultPass
- DATASET=defaultDS
- NAMESPACE=ElasticNFR
- STUBSPATH=/root/stubs
- DC_CONFIG_PATH=/root/cfgfiles
- LOGICMODULE_HOST=192.168.60.28
- LOGICMODULE_PORT_TCP=11034
- MQTT_BROKER_URL=tcp://localhost:1884
- CENTRAL_MQ_URL=tcp://192.168.60.28:1884
- IP_ETH_NODE1=192.168.137.13
- IP_ETH_NODE2=192.168.137.231
- IP_ETH_NODE3=172.16.124.67
restart: on-failure
telemetry:
image: elasticeuh2020/konnektbox-telemetry:dev20210517
container_name: telem
network_mode: "host"
depends_on:
- mosquitto
hostname: telem
environment:
- MQTT_ID=telemetryELASTIC
- MQTT_HOST=localhost
- MQTT_PORT=1884
- MQTT_PROTOCOL="tcp"
- REST_PORT=8080
- MONITOR_PERIOD=5
- REPORT_PERIOD=25
- CATEGORIES={"Active":["CPU", "Disk", "Mem", "Net"]}
- PEER_LIST={"eth0":["192.168.137.13", "192.168.137.231", "172.16.124.67"]}
......@@ -56,5 +56,7 @@ TCPPORT=11034" > ./model/cfgfiles/client.properties
sed -i -e "s/- LOGICMODULE_HOST=.*/- LOGICMODULE_HOST=$ip/" *.yml
sed -i -e "s/- USER=.*/- USER=\${USER:-$2}/" *.yml
sed -i -e "s/- USER=.*/- USER=$2/" *.yml
sed -i -e "s/- CENTRAL_MQ_URL=.*/- CENTRAL_MQ_URL=tcp:\/\/$ip:1884/" *.yml
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment