mosquitto start using config section, removed custom docker image
All checks were successful
/ deploy-to-homesrv01 (push) Successful in 4m0s

This commit is contained in:
2025-01-19 03:07:48 +00:00
parent 799c4b9f67
commit 365f71e604
6 changed files with 10 additions and 85 deletions

View File

@@ -1,23 +1,25 @@
services:
mosquitto:
#build:
# dockerfile: Dockerfile
# context: ./docker
image: git.limbosolutions.com/marcio.fernandes/mosquitto:latest
image: eclipse-mosquitto:latest
ports:
- '1883:1883'
- '8883:8883'
environment:
- TZ= Europe/Lisbon
- |
MOSQUITTO_CONFIG_CONTENT=
listener ${LISTENER_PORT}
allow_anonymous ${ALLOW_ANONYMOUS}
- MOSQUITTO_CONFIG_CONTENT=${MOSQUITTO_CONFIG_CONTENT}
volumes:
- data:/mosquitto/data
configs:
- mosquitto_conf
command: /usr/sbin/mosquitto -c /mosquitto_conf
restart: unless-stopped
volumes:
data:
configs:
mosquitto_conf:
content: |
listener 1883
allow_anonymous true