En este video, te llevaré a través de una guía completa para instalar y configurar algunas de las herramientas más importantes para la automatización y monitorización de tu hogar inteligente. Cubriremos cada paso necesario para instalar Docker, Portainer, Home Assistant, Configurator, InfluxDB y Grafana en tu sistema.
Lista de comandos:
Instalacion de Docker
sudo apt update
sudo apt upgrade -y
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL download.docke... | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] download.docke... $(lsb_release -cs) stable"
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
docker --version
sudo usermod -aG docker $USER
newgrp docker
docker run hello-world
Intslacion de portainer
sudo docker volume create portainer_data
sudo docker run -d -p 8000:8000 -p 9443:9443 --name portainer \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce:latest
instalacion de home assistant
version: '3'
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /docker/homeassistant:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
network_mode: host
node-red:
image: nodered/node-red:latest
environment:
- TZ=Europe/Amsterdam
ports:
- "1880:1880/tcp"
volumes:
- /docker/nodered:/data
restart: unless-stopped
privileged: true
network_mode: host
hass-configurator:
container_name: configurator
image: causticlab/hass-configurator-docker:latest
volumes:
- /docker/configurator:/config
- /docker/homeassistant:/hass-config
restart: always
ports:
- "3218:3218/tcp"
privileged: true
network_mode: host
code-server:
image: lscr.io/linuxserver/code-server
container_name: code-server
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Madrid
volumes:
- ./config:/config
- /docker/homeassistant:/config/workspace
ports:
- 8443:8443
restart: unless-stopped
privileged: true
network_mode: host
influxdb:
image: influxdb
restart: always
ports:
- "8086:8086"
volumes:
- /docker/influxdb/data:/var/lib/influxdb
grafana:
container_name: grafana
image: grafana/grafana
user: "0"
restart: always
ports:
- 3000:3000
volumes:
- /docker/grafana:/var/lib/grafana
depends_on:
- influxdb
privileged: true
network_mode: host
Негізгі бет Guía Completa: Instalación de Docker, Portainer, Home Assistant, Configurator, InfluxDB y Grafana.
No video
Пікірлер