0

【ALL IN ONE】之-迁移HomeAssistand到fnos(docker版)

发表于:7 天前 Docker 81
本帖最后由 Nestor 于 2024-10-14 10:15 编辑

1.首先复制原有HomeAssistant目录到飞牛

目录结构如下:



2.在docker应用中创建docker compose,目录选自己复制过去的目录



3.编写docker compose( image: "ghcr.nju.edu.cn/home-assistant/home-assistant:stable"可以改为国内加速镜像的;/vol1/1000/hass是你复制过去的目录)
  1. services:
  2.     homeassistant:
  3.         container_name: homeassistant
  4.         image: "ghcr.nju.edu.cn/home-assistant/home-assistant:stable"
  5.         volumes:
  6.             - /vol1/1000/hass:/config
  7.             - /etc/localtime:/etc/localtime:ro
  8.             - /run/dbus:/run/dbus:ro
  9.         restart: alway
  10.         privileged: true
  11.         network_mode: host
复制代码
4.飞牛ip:8123访问HomeAssistand吧
收藏
送赞
分享

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

发表回复