User Tools

Site Tools


hass:docker
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


hass:docker [2022/03/20 13:03] (current) – created a
Line 1: Line 1:
 +====== Docker ======
  
 +===== Docker Compose =====
 +
 +''/etc/docker/compose/home-assistant/docker-compose.yml''
 +
 +<code>
 +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
 +</code>
hass/docker.txt · Last modified: 2022/03/20 13:03 by a