added configuration volume

This commit is contained in:
2024-05-29 16:53:44 +01:00
parent 87ebdc5dfb
commit 45156ff6c1
3 changed files with 908 additions and 1 deletions

18
docker-compose.yaml Normal file
View File

@@ -0,0 +1,18 @@
version: "3"
services:
app:
image: eclipse-mosquitto:latest
ports:
- '1883:1883'
- '8883:8883'
volumes:
- 'data:/mosquitto/data/'
- 'config:/mosquitto/config/'
environment:
TZ: 'Europe/Lisbon'
restart: unless-stopped
volumes:
data:
curl -sSL https://get.docker.com/ | sh
config: