找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 7482|回复: 16

[N1盒子] N1在docker下安装unifi controller

[复制链接]
发表于 2019-3-7 21:41 | 显示全部楼层 |阅读模式
本帖最后由 Mozzie 于 2019-3-7 21:43 编辑

如题。找了好久找到了。
参照 https://github.com/ryansch/docker-unifi-rpi/wiki/TLS-with-Traefik

步骤:
1、安装docker 步骤略
2、安装docker-compose,这里会用到pip,需要手动安装

  1. curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  2. python get-pip.py
  3. pip install docker-compose
复制代码


3、putty连接N1
  1. cd /opt
  2. mkdir unifi
  3. cd unifi
  4. wget https://raw.githubusercontent.com/ryansch/docker-unifi-rpi/master/traefik.toml
  5. wget https://raw.githubusercontent.com/ryansch/docker-unifi-rpi/master/traefik.yml
复制代码
4、生成密码。根据提示输入密码,然后复制新生成的密码
  1. docker run -it --rm httpd:alpine htpasswd -Bn unifi
复制代码

编辑traefik.toml traefik.yml
将所有CHANGEME根据实际情况填写。
将traefik.toml 中的密码修改为上面生成的密码
修改traefik.yml中的
  1. image: ryansch/unifi-rpi:latest
复制代码
修改为
  1. image: ryansch/unifi-rpi:5.9.32-arm64v8
复制代码

5、
  1. mv traefik.yml docker-compose.yml
复制代码
6、将unifi注册为系统服务
  1. wget https://raw.githubusercontent.com/ryansch/docker-unifi-rpi/master/contrib/unifi.service
  2. systemctl enable /opt/unifi/unifi.service
复制代码
7、
  1. touch acme.json
  2. chmod 600 acme.json
复制代码


8、启动UNIFI
有两种方式:
  1. docker-compose up -d
复制代码

  1. systemctl start unifi
复制代码



我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-3-8 10:32 | 显示全部楼层
留言!日后深究
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-8 14:39 | 显示全部楼层
顶楼主,开个装openwrt教程吧
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-8 15:45 | 显示全部楼层
感觉arm平台还不如直接安装unifi控制器来的方便
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-8 16:06 | 显示全部楼层
刚看了一下,ryansch在dockerhub上有镜像的啊,直接拉取不就是了,docker pull ryansch/unifi-rpi,还有其它镜像可以用linuxserver/unifi-controller:arm64v8-latest,比ryansch还小很多
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-18 11:34 | 显示全部楼层
请问高手,这个是做什么用的?谢谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-4-2 17:19 | 显示全部楼层
百度了一下,对于家用来说,这个东西好像过于强大了。感谢大神分享!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-23 11:55 | 显示全部楼层
docker-compose 这个东西安装的时候没报错?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-12-1 19:44 | 显示全部楼层
楼主,你这个能运行成功么?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-12-29 20:19 | 显示全部楼层
先收藏一下。。。。。
马克菠萝菠萝蜜
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-2-1 14:50 | 显示全部楼层
请问你的compose怎么安装的?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-6-4 08:21 | 显示全部楼层
wget: server returned error: HTTP/1.1 404 Not Found 请问出现这个是不是要跨栏运动?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-7-13 16:03 | 显示全部楼层
请问长时间运行报错是因为存储空间不够导致的吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-12-5 10:42 | 显示全部楼层
收藏一下好东西。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-12-5 12:57 | 显示全部楼层
日后研究!不知道干什么的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-26 07:48

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表