Skip to content

Instantly share code, notes, and snippets.

@alexandregz
Created January 10, 2025 22:42
Show Gist options
  • Save alexandregz/e8328c63e292641ad32b14ba4e1bf006 to your computer and use it in GitHub Desktop.
Save alexandregz/e8328c63e292641ad32b14ba4e1bf006 to your computer and use it in GitHub Desktop.
docker compose empregado en portainer con raspberry4 para home asssistant
version: '3'
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /docker/homeassistant:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
restart: unless-stopped
privileged: true
network_mode: host
mqtt:
container_name: mosquitto
image: eclipse-mosquitto:1.6
ports:
- "1883:1883"
- "9001:9001"
volumes:
- /docker/mosquitto/config:/mqtt/config
- /docker/mosquitto/log:/mqtt/log
- /docker/mosquitto/data/:/mqtt/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment