test: write mosquitto password file to data volume (writable)

This commit is contained in:
2025-12-28 15:41:19 +01:00
parent c835fb7a98
commit ecbab66db6
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -3,7 +3,8 @@
listener 1883 0.0.0.0
# do not allow anonymous in this test stack; require password_file
allow_anonymous false
password_file /mosquitto/config/passwordfile
# place password file in the data volume (writable)
password_file /mosquitto/data/passwordfile
# Increase persistence location so container can map volume if needed
persistence true
persistence_location /mosquitto/data/