added devcontainer.

fix build error, deploy using docker-compose works,
misc changes
using global MQTT instead of local one to tap to already existin broker
This commit is contained in:
Dobromir Popov ONE
2023-05-14 21:40:57 +03:00
parent 145e202d24
commit 95ce6e8c87
7 changed files with 78 additions and 14 deletions

View File

@@ -3,6 +3,7 @@ version: '3.3'
services:
node-app:
build: .
command: npm run start:debug
environment:
- DATABASE_HOST=node-mysql
- DATABASE_NAME=iot
@@ -10,13 +11,13 @@ services:
- DATABASE_PASS=mitko2021
- GARDEN_IP=0.0.0.0
# - GARDEN_IP=192.168.0.100
- MQTT_HOST=node-mqtt
- MQTT_HOST=192.168.0.10
- MQTT_PORT_HTTP=1883
- MQTT_PORT_HTTPS=8444
- MQTT_ESP_NAME=Garden
depends_on:
- node-mysql
- node-mqtt
#- node-mqtt
restart: always
ports:
- 2081:2080
@@ -32,13 +33,13 @@ services:
volumes:
- iotdbdata:/var/lib/mysql
# for mitko:mqtt
node-mqtt:
image: eclipse-mosquitto
command: mosquitto -c /mosquitto-no-auth.conf
hostname: node-mqtt
ports:
- 1885:1883
- 10883:1883
restart: always
# node-mqtt:
# image: eclipse-mosquitto
# command: mosquitto -c /mosquitto-no-auth.conf
# hostname: node-mqtt
# ports:
# - 1885:1883
# - 10883:1883
# restart: always
volumes:
iotdbdata: