Skip to content

Commit

Permalink
created sensors file
Browse files Browse the repository at this point in the history
added env prop for custom %staging profile when running on local docker
instance
fixes
  • Loading branch information
abattagl authored and abattagl committed Sep 6, 2020
1 parent 74ca315 commit 10ccce1
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 24 deletions.
12 changes: 6 additions & 6 deletions buildQiot.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ cd /home/abattagl/git/qiot/datahub/qiot-datahub-storer/qiot-datahub-storer-pollu
./build.sh
cd /home/abattagl/git/qiot/datahub/qiot-datahub-aggregation/
./build.sh
cd /home/abattagl/git/qiot/datahub/qiot-datahub-importer/
./build.sh
#cd /home/abattagl/git/qiot/datahub/qiot-datahub-importer/
#./build.sh
cd /home/abattagl/git/qiot/datahub/qiot-datahub-registration/
./build.sh
cd /home/abattagl/git/qiot/datahub/qiot-datahub-endpoint/qiot-datahub-endpoint-mqtt/
./build.sh
cd /home/abattagl/git/qiot/edge/qiot-sensors-emulator/
./build.sh
cd /home/abattagl/git/qiot/edge/qiot-service/
./build.sh
#cd /home/abattagl/git/qiot/edge/qiot-sensors-emulator/
#./build.sh
#cd /home/abattagl/git/qiot/edge/qiot-service/
#./build.sh

21 changes: 15 additions & 6 deletions datahub/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
version: '3'
services:
edge-sensors:
image: quay.io/qiot/qiot-sensors-emulator
container_name: "edge-sensors"
restart: "no"
ports:
- "5000:5000"
datahub-registration:
image: quay.io/qiot/qiot-datahub-registration
container_name: "datahub-registration"
restart: "no"
ports:
- "5016:5016"
environment:
QUARKUS_PROFILE: "staging"
HTTPPORT: "5016"
MONGODBURL: "mongo:27017"
datahub-aggregation:
Expand All @@ -22,13 +17,25 @@ services:
ports:
- "5018:5018"
environment:
QUARKUS_PROFILE: "staging"
HTTPPORT: "5018"
MONGODBURL: "mongo:27017"
datahub-query:
image: quay.io/qiot/qiot-datahub-query
container_name: "datahub-query"
restart: "no"
ports:
- "5200:5200"
environment:
QUARKUS_PROFILE: "staging"
HTTPPORT: "5200"
MONGODBURL: "mongo:27017"
endpoint-mqtt:
image: quay.io/qiot/qiot-datahub-endpoint-mqtt
container_name: "datahub-endpoint-mqtt"
restart: "no"
environment:
QUARKUS_PROFILE: "staging"
AMQPHOST: "activemq"
MQTTHOST: "activemq"
# gasstreamer:
Expand All @@ -50,13 +57,15 @@ services:
container_name: "datahub-storer-gas"
restart: "no"
environment:
QUARKUS_PROFILE: "staging"
KAFKABOOTSTRAPURL: "kafka:9092"
MONGODBURL: "mongo:27017"
pollutionstorer:
image: quay.io/qiot/qiot-datahub-storer-pollution
container_name: "datahub-storer-pollution"
restart: "no"
environment:
QUARKUS_PROFILE: "staging"
KAFKABOOTSTRAPURL: "kafka:9092"
MONGODBURL: "mongo:27017"
networks:
Expand Down
27 changes: 15 additions & 12 deletions edge/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,47 @@ services:
ports:
- "8091:8080"
environment:
QUARKUS_PROFILE: "staging"
STATIONSERIAL: "teststationserial01"
STATIONNAME: "teststation01"
STATIONADDRESS: "viale john fitzgerald kennedy 2/D vibo valentia"
SENSORSURL: "http://edge-sensors:5000/"
#DATAHUBURL: "http://datahub-registration:5016/"
#MQTTHOST: "activemq"
#ENABLESSL: "false"
#MQTTPORT: "1883"
DATAHUBURL: "http://datahub-registration:5016/"
MQTTURL: "activemq"
ENABLESSL: "false"
MQTTPORT: "1883"
edge-service-02:
image: quay.io/qiot/qiot-service
container_name: "edge-service-02"
restart: "no"
ports:
- "8092:8080"
environment:
QUARKUS_PROFILE: "staging"
STATIONSERIAL: "teststationserial02"
STATIONNAME: "teststation02"
STATIONADDRESS: "soriano calabro"
SENSORSURL: "http://edge-sensors:5000/"
#DATAHUBURL: "http://datahub-registration:5016/"
#MQTTHOST: "activemq"
#ENABLESSL: "false"
#MQTTPORT: "1883"
DATAHUBURL: "http://datahub-registration:5016/"
MQTTURL: "activemq"
ENABLESSL: "false"
MQTTPORT: "1883"
edge-service-03:
image: quay.io/qiot/qiot-service
container_name: "edge-service-03"
restart: "no"
ports:
- "8093:8080"
environment:
QUARKUS_PROFILE: "staging"
STATIONSERIAL: "teststationserial03"
STATIONNAME: "teststation03"
STATIONADDRESS: "minsk"
SENSORSURL: "http://edge-sensors:5000/"
#DATAHUBURL: "http://datahub-registration:5016/"
#MQTTHOST: "activemq"
#ENABLESSL: "false"
#MQTTPORT: "1883"
DATAHUBURL: "http://datahub-registration:5016/"
MQTTURL: "activemq"
ENABLESSL: "false"
MQTTPORT: "1883"
networks:
default:
external:
Expand Down
51 changes: 51 additions & 0 deletions edge/prod/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: '3'
services:
edge-service-01:
image: quay.io/qiot/qiot-service
container_name: "edge-service-01"
restart: "no"
ports:
- "8091:8080"
environment:
STATIONSERIAL: "teststationserial01"
STATIONNAME: "teststation01"
STATIONADDRESS: "viale john fitzgerald kennedy 2/D vibo valentia"
SENSORSURL: "http://edge-sensors:5000/"
#DATAHUBURL: "http://datahub-registration:5016/"
#MQTTHOST: "activemq"
#ENABLESSL: "false"
#MQTTPORT: "1883"
edge-service-02:
image: quay.io/qiot/qiot-service
container_name: "edge-service-02"
restart: "no"
ports:
- "8092:8080"
environment:
STATIONSERIAL: "teststationserial02"
STATIONNAME: "teststation02"
STATIONADDRESS: "soriano calabro"
SENSORSURL: "http://edge-sensors:5000/"
#DATAHUBURL: "http://datahub-registration:5016/"
#MQTTHOST: "activemq"
#ENABLESSL: "false"
#MQTTPORT: "1883"
edge-service-03:
image: quay.io/qiot/qiot-service
container_name: "edge-service-03"
restart: "no"
ports:
- "8093:8080"
environment:
STATIONSERIAL: "teststationserial03"
STATIONNAME: "teststation03"
STATIONADDRESS: "minsk"
SENSORSURL: "http://edge-sensors:5000/"
#DATAHUBURL: "http://datahub-registration:5016/"
#MQTTHOST: "activemq"
#ENABLESSL: "false"
#MQTTPORT: "1883"
networks:
default:
external:
name: qiot
14 changes: 14 additions & 0 deletions sensor/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3'
services:
edge-sensors:
image: quay.io/qiot/qiot-sensors-emulator
container_name: "edge-sensors"
restart: "no"
ports:
- "5000:5000"
environment:
QUARKUS_PROFILE: "staging"
networks:
default:
external:
name: qiot

0 comments on commit 10ccce1

Please sign in to comment.