Initial upload of configurations
This commit is contained in:
21
mqtt/docker-compose.yaml
Normal file
21
mqtt/docker-compose.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
version: '3.3'
|
||||
|
||||
services:
|
||||
mosquitto:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
image: eclipse-mosquitto
|
||||
volumes:
|
||||
- ${HOME_DIR}/${CONTAINER_NAME}:/mosquitto'
|
||||
- ${HOME_DIR}/${CONTAINER_NAME}/data:/mosquitto/data'
|
||||
- ${HOME_DIR}/${CONTAINER_NAME}/log:/mosquitto/log'
|
||||
ports:
|
||||
- ${PORT_MQTT}:1883
|
||||
- ${PORT_WEBSOCKET}:9001
|
||||
env_file:
|
||||
- path: ./mqtt.env
|
||||
required: true
|
||||
- path: ../global.env
|
||||
required: true
|
||||
environment:
|
||||
- TZ=${TIMEZONE}
|
||||
restart: unless-stopped
|
||||
3
mqtt/mqtt.env
Normal file
3
mqtt/mqtt.env
Normal file
@@ -0,0 +1,3 @@
|
||||
CONTAINER_NAME=mqtt
|
||||
PORT_MQTT=1883
|
||||
PORT_WEBSOCKET=9001
|
||||
Reference in New Issue
Block a user