merge env. using existing mqtt

This commit is contained in:
Dobromir Popov ONE
2023-05-15 10:58:49 +03:00
parent b81424a5c8
commit fd7ef73a47
3 changed files with 20 additions and 13 deletions

View File

@@ -3,7 +3,6 @@ version: '3.3'
services:
node-app:
build: .
command: npm run start:debug
environment:
- DATABASE_HOST=node-mysql
- DATABASE_NAME=iot
@@ -11,13 +10,13 @@ services:
- DATABASE_PASS=mitko2021
- GARDEN_IP=0.0.0.0
# - GARDEN_IP=192.168.0.100
- MQTT_HOST=192.168.0.10
- MQTT_HOST=node-mqtt
- 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
@@ -33,13 +32,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: