chore(service): improve mosquitto template (#6227)
This commit is contained in:
parent
59e6da4ae3
commit
c406afddaf
1 changed files with 4 additions and 3 deletions
|
|
@ -15,14 +15,15 @@ services:
|
|||
- REQUIRE_CERTIFICATE=${REQUIRE_CERTIFICATE:-false}
|
||||
- ALLOW_ANONYMOUS=${ALLOW_ANONYMOUS:-true}
|
||||
volumes:
|
||||
- mosquitto-config:/mosquitto/config
|
||||
- mosquitto-certs:/certs
|
||||
- "./mosquitto/config:/mosquitto/config"
|
||||
- "./certs:/certs"
|
||||
ports:
|
||||
- "8883:8883"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "exit 0"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
entrypoint: 'sh -c "
|
||||
if [ ''$REQUIRE_CERTIFICATE'' = ''true'' ]; then
|
||||
echo ''listener 8883'' > /mosquitto/config/mosquitto.conf &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue