-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
create docker-compose, add users dir, add mosquitto.conf
Showing
6 changed files
with
36 additions
and
9 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 |
---|---|---|
|
@@ -6,6 +6,5 @@ configs/** | |
**/*.log | ||
.env | ||
**/tidbyt-apps/** | ||
**/users/** | ||
.DS_Store | ||
tidbyt-apps/ |
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: '3.8' | ||
|
||
services: | ||
web: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- "8000:8000" # Map port 8000 on the host to port 8000 in the container | ||
- "5100:5100" # 5100 is used for pixlet serve interface during app configuration | ||
environment: | ||
- MQTT_BROKER_HOST=mqtt # Name of the MQTT service (hostname inside the Docker network) | ||
- MQTT_BROKER_PORT=1883 | ||
depends_on: | ||
- mqtt | ||
|
||
mqtt: | ||
image: eclipse-mosquitto:latest | ||
ports: | ||
- "1883:1883" # MQTT broker port | ||
- "9001:9001" # (optional) WebSocket support | ||
volumes: | ||
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf |
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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Listen on port 1883 for all network interfaces (external hosts) | ||
listener 1883 | ||
# Allow anonymous connections (optional; for testing only) | ||
allow_anonymous true |
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