User Tools

Site Tools


hass:docker

Docker

Docker Compose

/etc/docker/compose/home-assistant/docker-compose.yml

version: '3'
services:
  homeassistant:
    depends_on:
      - mqtt
    container_name: home-assistant
    image: homeassistant/home-assistant:stable
    volumes:
      - /var/local/docker-files/home-assistant:/config
      - /Media:/Media
      - /var/run/postgresql:/postgresql
    environment:
      - TZ=Australia/Perth
    restart: always
    ports:
      - 8123:8123
    network_mode: host
    privileged: true
  mqtt:
    image: eclipse-mosquitto:latest
    container_name: "mosquitto"
    restart: always
    ports:
      - 1883:1883
      - 9001:9001
    volumes:
      - /var/local/docker-files/mosquitto/data:/mosquitto/data
      - /var/local/docker-files/mosquitto/config:/mosquitto/config
      - /var/local/docker-files/mosquitto/log:/mosquitto/log
    network_mode: bridge
    environment:
      - TZ=Australia/Perth
hass/docker.txt · Last modified: 2022/03/20 13:03 by a