Initial commit
This commit is contained in:
25
sample/docker-compose.yml
Executable file
25
sample/docker-compose.yml
Executable file
@@ -0,0 +1,25 @@
|
||||
version: '2'
|
||||
services:
|
||||
mqtt:
|
||||
image: bitrox/mqtt
|
||||
networks:
|
||||
- backend-net
|
||||
ports:
|
||||
- 1883:1883
|
||||
- 8083:8083
|
||||
- 8883:8883
|
||||
- 8116:80
|
||||
environment:
|
||||
- DOMAIN=mqtt.bitrox.io
|
||||
- EMAIL=proxy@bitrox.io
|
||||
volumes:
|
||||
- ./mosquitto/conf/:/mosquitto/conf
|
||||
- ./mosquitto/log/:/mosquitto/log
|
||||
- ./letsencrypt:/etc/letsencrypt
|
||||
- ./scripts:/scripts
|
||||
container_name: mqtt
|
||||
restart: always
|
||||
networks:
|
||||
backend-net:
|
||||
external:
|
||||
name: backend-net
|
64
sample/mosquitto.conf
Executable file
64
sample/mosquitto.conf
Executable file
@@ -0,0 +1,64 @@
|
||||
# Config file for mosquitto
|
||||
#
|
||||
# See mosquitto.conf(5) for more information.
|
||||
#
|
||||
|
||||
# =================================================================
|
||||
# General configuration
|
||||
# =================================================================
|
||||
|
||||
# When run as root, drop privileges to this user and its primary
|
||||
# group.
|
||||
# Leave blank to stay as root, but this is not recommended.
|
||||
# If run as a non-root user, this setting has no effect.
|
||||
# Note that on Windows this has no effect and so mosquitto should
|
||||
# be started by the user you wish it to run as.
|
||||
user mosquitto
|
||||
|
||||
# =================================================================
|
||||
# Default listener
|
||||
# =================================================================
|
||||
|
||||
port 1883
|
||||
protocol mqtt
|
||||
|
||||
# =================================================================
|
||||
# Extra listeners
|
||||
# =================================================================
|
||||
|
||||
listener 8083
|
||||
protocol websockets
|
||||
cafile /etc/letsencrypt/live/mqtt.bitrox.io/chain.pem
|
||||
certfile /etc/letsencrypt/live/mqtt.bitrox.io/fullchain.pem
|
||||
keyfile /etc/letsencrypt/live/mqtt.bitrox.io/privkey.pem
|
||||
|
||||
listener 8883
|
||||
protocol mqtt
|
||||
cafile /etc/letsencrypt/live/mqtt.bitrox.io/chain.pem
|
||||
certfile /etc/letsencrypt/live/mqtt.bitrox.io/fullchain.pem
|
||||
keyfile /etc/letsencrypt/live/mqtt.bitrox.io/privkey.pem
|
||||
|
||||
# =================================================================
|
||||
# Logging
|
||||
# =================================================================
|
||||
|
||||
log_dest file /mosquitto/log/mosquitto.log
|
||||
log_type all
|
||||
websockets_log_level 255
|
||||
connection_messages true
|
||||
log_timestamp true
|
||||
|
||||
# =================================================================
|
||||
# Security
|
||||
# =================================================================
|
||||
|
||||
allow_anonymous false
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Default authentication and topic access control
|
||||
# -----------------------------------------------------------------
|
||||
|
||||
# Control access to the broker using a password file. This file can be
|
||||
# generated using the mosquitto_passwd utility.
|
||||
password_file /mosquitto/conf/passwd
|
||||
|
Reference in New Issue
Block a user