Skip to content

Commit 9bc63d7

Browse files
committed
feat(mosquitto): Add logging configuration and update log destination
1 parent e536977 commit 9bc63d7

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,11 @@ services:
365365
- UN_RADARR_0_API_KEY=${RADARR_API_KEY}
366366
security_opt:
367367
- no-new-privileges:true
368+
logging:
369+
driver: "json-file"
370+
options:
371+
max-size: "10m"
372+
max-file: "5"
368373
cleanuparr:
369374
image: ghcr.io/cleanuparr/cleanuparr:latest
370375
container_name: cleanuparr

homeassistant/docker-compose.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ services:
4545
volumes:
4646
- ${CONFIG_ROOT:-.}/homeassistant/mosquitto/config:/mosquitto/config
4747
- ${CONFIG_ROOT:-.}/homeassistant/mosquitto/data:/mosquitto/data
48-
- ${CONFIG_ROOT:-.}/homeassistant/mosquitto/log:/mosquitto/log
4948
ports:
5049
- "1883:1883"
5150
healthcheck:
@@ -67,6 +66,11 @@ services:
6766
interval: 1m
6867
timeout: 10s
6968
retries: 3
69+
logging:
70+
driver: "json-file"
71+
options:
72+
max-size: "10m"
73+
max-file: "5"
7074
profiles:
7175
- mqtt
7276
homeassistant-backup:

homeassistant/mosquitto/config/mosquitto.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ persistence_location /mosquitto/data
44
password_file /mosquitto/config/pwfile
55
allow_anonymous false
66

7-
log_dest file /mosquitto/log/mosquitto.log
7+
log_dest stderr
88

99
listener 1883
1010

0 commit comments

Comments
 (0)