mosquitto start using config section, removed custom docker image
All checks were successful
/ deploy-to-homesrv01 (push) Successful in 4m0s
All checks were successful
/ deploy-to-homesrv01 (push) Successful in 4m0s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user