当前位置: 首页 > news >正文

优质网站有哪些seo系统源码

优质网站有哪些,seo系统源码,网站优化建设,微信小程序视频网站开发教程什么是 DIUN ? Docker Image Update Notifier 是一个用 Go 编写的 CLI 应用程序,可作为单个可执行文件和 Docker 映像交付,用于当 Docker 映像在 Docker registry中更新时接收通知。 和老苏之前介绍过的 watchtower 不同,DIUN 只是通知&…

在这里插入图片描述

什么是 DIUN ?

Docker Image Update Notifier 是一个用 Go 编写的 CLI 应用程序,可作为单个可执行文件和 Docker 映像交付,用于当 Docker 映像在 Docker registry中更新时接收通知。

和老苏之前介绍过的 watchtower 不同,DIUN 只是通知,并不会像 watchtower 一样自动更新镜像和容器

文章传送门:watchtower自动化更新docker镜像

准备

原本老苏打算一如既往使用 88邮件来发送消息,但是要么是 554 sender is rejected 错误

diun    | Wed, 24 May 2023 17:17:56 CST ERR Mail notification failed error="gomail: could not send email 1: 554 sender is rejected: 0" image=docker.io/crazymax/diun:latest

要么是 error=EOF 错误,懒得再换邮箱折腾了

diun    | Wed, 24 May 2023 19:14:06 CST ERR Mail notification failed error=EOF image=docker.io/crazymax/diun:latest

DIUN 还支持不少消息类型,老苏最后选择了用 Gotify

在这里插入图片描述

获取 Gotify Token

如果你还不了解、没安装过 Gotify,可以点下面的传送门

文章传送门:Gotify消息推送系统搭建

安装完成后,新建一个应用,获取到Token,我们后面推送消息要用到

在这里插入图片描述

配置文件 diun.yml

Diun 中有两种不同的方式来定义配置

  • 使用环境变量
  • 使用配置文件

老苏采用了配置文件方式,具体的参数可以看官方的说明:https://crazymax.dev/diun/config/

这里我们使用最小配置每 6 小时分析一次本地 Docker 实例的所有正在运行的容器,并使用了 gotify 发送消息

db:path: diun.dbwatch:workers: 10schedule: "0 */6 * * *"firstCheckNotif: truenotif:gotify:endpoint: http://192.168.0.197:8385token: <你的 Gotify Token >priority: 1timeout: 10stemplateTitle: "{{ .Entry.Image }} released"templateBody: |Docker tag {{ .Entry.Image }} which you subscribed to through {{ .Entry.Provider }} provider has been released.providers:docker:watchStopped: truewatchByDefault: true

上面有两处要修改

  • endpoint:要换成你自己的gotify 的访问地址 ;
  • token:也要换成你上一步从 gotify 获取的 Token

安装

与容器相关的应用,都需要绑定挂载 /var/run/docker.sock ,包括我们之前安装的 portainerwatchtowerGlancesNetdatalazydocker 等。

什么是 /var/run/docker.sock ?

/var/run/docker.sockDocker API 的主要入口,简单地说,它是 Docker 守护进程(Docker daemon)默认监听的 Unix 域套接字(Unix domain socket),容器中的进程可以通过它与 Docker 守护进程进行通信。

在这里插入图片描述

图片来自:https://betterprogramming.pub/about-var-run-docker-sock-3bfd276e12fd

但是群晖的 Docker 管理器并不支持挂载 /var/run/docker.sock 文件,所以这次我们需用命令行来安装

docker cli 安装

如果你熟悉命令行,可能用 docker cli 更快捷

# 新建文件夹 diun 和 子目录
mkdir -p /volume2/docker/diun/data# 进入 diun 目录
cd /volume2/docker/diun# 将 diun.yml 放入当前目录# 运行容器
docker run -d \--restart always \--name diun \-v $(pwd)/data:/data \-v $(pwd)/diun.yml:/diun.yml:ro \-v /var/run/docker.sock:/var/run/docker.sock \-e "TZ=Asia/Shanghai" \-e "LOG_LEVEL=info" \-e "LOG_JSON=false" \crazymax/diun:latest \serve

docker-compose 安装

将下面的内容保存为 docker-compose.yml 文件

version: "3.5"services:diun:image: crazymax/diun:latestcontainer_name: diunrestart: alwaysvolumes:- "./data:/data"- "./diun.yml:/diun.yml:ro"- "/var/run/docker.sock:/var/run/docker.sock"environment:- "TZ=Asia/Shanghai"- "LOG_LEVEL=info"- "LOG_JSON=false"command: serve

然后执行下面的命令

# 新建文件夹 diun 和 子目录
mkdir -p /volume2/docker/diun/data# 进入 diun 目录
cd /volume2/docker/diun# 将 diun.yml 和 docker-compose.yml 放入当前目录# 一键启动
docker-compose up -d

在这里插入图片描述

运行

在浏览器中输入 http://群晖IP:8385 ,查看 Gotify消息,当检测到容器有新版本时,会收到信息

在这里插入图片描述

参考文档

crazy-max/diun: Receive notifications when an image is updated on a Docker registry
地址:https://github.com/crazy-max/diun/

Diun 文档
地址:https://crazymax.dev/diun/

alerting system for the publishing of new docker images with DIUN: how have you configurated it for emails message? Have you some examples to optimize mine? I have got a couple of questions… : selfhosted
地址:https://www.reddit.com/r/selfhosted/comments/qbunu2/alerting_system_for_the_publishing_of_new_docker/


文章转载自:
http://dinncotops.zfyr.cn
http://dinncoectorhinal.zfyr.cn
http://dinncomultivariate.zfyr.cn
http://dinncobased.zfyr.cn
http://dinncomutability.zfyr.cn
http://dinncohallali.zfyr.cn
http://dinncoaddisonian.zfyr.cn
http://dinncounstiffen.zfyr.cn
http://dinncosulphide.zfyr.cn
http://dinncohermitian.zfyr.cn
http://dinncopsychosynthesis.zfyr.cn
http://dinncoskimboard.zfyr.cn
http://dinncomagenta.zfyr.cn
http://dinncotransliteration.zfyr.cn
http://dinncofishwood.zfyr.cn
http://dinncocali.zfyr.cn
http://dinncooncost.zfyr.cn
http://dinncotog.zfyr.cn
http://dinncofleshcolor.zfyr.cn
http://dinncofickleness.zfyr.cn
http://dinncotrombone.zfyr.cn
http://dinncodatum.zfyr.cn
http://dinncoisotropic.zfyr.cn
http://dinncogarp.zfyr.cn
http://dinncogermfree.zfyr.cn
http://dinncogastrophrenic.zfyr.cn
http://dinncohaemocytometer.zfyr.cn
http://dinncospongeware.zfyr.cn
http://dinncoastronome.zfyr.cn
http://dinncopolymolecular.zfyr.cn
http://dinncotiling.zfyr.cn
http://dinncocleanse.zfyr.cn
http://dinncofry.zfyr.cn
http://dinncogreenkeeper.zfyr.cn
http://dinncopiety.zfyr.cn
http://dinncodorset.zfyr.cn
http://dinncotrattoria.zfyr.cn
http://dinncocorinne.zfyr.cn
http://dinncosubmental.zfyr.cn
http://dinncobluepencil.zfyr.cn
http://dinncointercrystalline.zfyr.cn
http://dinncotachycardiac.zfyr.cn
http://dinncoanalgesic.zfyr.cn
http://dinncogopi.zfyr.cn
http://dinncoexactitude.zfyr.cn
http://dinncoharquebus.zfyr.cn
http://dinncofatback.zfyr.cn
http://dinncoindorse.zfyr.cn
http://dinncopimply.zfyr.cn
http://dinncodives.zfyr.cn
http://dinncopolka.zfyr.cn
http://dinncocommercialese.zfyr.cn
http://dinncofluoroscopy.zfyr.cn
http://dinncomidwifery.zfyr.cn
http://dinncomanifestly.zfyr.cn
http://dinncowelt.zfyr.cn
http://dinnconongonococal.zfyr.cn
http://dinncoexodontics.zfyr.cn
http://dinncowaxwing.zfyr.cn
http://dinncochimp.zfyr.cn
http://dinncodissociableness.zfyr.cn
http://dinncomitospore.zfyr.cn
http://dinncobistoury.zfyr.cn
http://dinncomaqui.zfyr.cn
http://dinncoominously.zfyr.cn
http://dinncocricoid.zfyr.cn
http://dinncousufruct.zfyr.cn
http://dinncoselfishly.zfyr.cn
http://dinncotestae.zfyr.cn
http://dinncohealthy.zfyr.cn
http://dinncoblusher.zfyr.cn
http://dinncogalactorrhea.zfyr.cn
http://dinncobicky.zfyr.cn
http://dinncoalterative.zfyr.cn
http://dinncodisown.zfyr.cn
http://dinncobintree.zfyr.cn
http://dinncotechnological.zfyr.cn
http://dinnconarrows.zfyr.cn
http://dinncoufological.zfyr.cn
http://dinncosarmentaceous.zfyr.cn
http://dinncovivax.zfyr.cn
http://dinncoptarmigan.zfyr.cn
http://dinncoroar.zfyr.cn
http://dinncotoucher.zfyr.cn
http://dinncohydroforming.zfyr.cn
http://dinncouppity.zfyr.cn
http://dinncoandradite.zfyr.cn
http://dinnconatruresis.zfyr.cn
http://dinncocartesianism.zfyr.cn
http://dinncoleglet.zfyr.cn
http://dinncononrefundable.zfyr.cn
http://dinncobinit.zfyr.cn
http://dinncoaltocumulus.zfyr.cn
http://dinncounqueen.zfyr.cn
http://dinncoplentitude.zfyr.cn
http://dinncoantithetic.zfyr.cn
http://dinncodecanal.zfyr.cn
http://dinncomobot.zfyr.cn
http://dinncoforewarn.zfyr.cn
http://dinnconame.zfyr.cn
http://www.dinnco.com/news/121696.html

相关文章:

  • 外贸网站建设谷歌推广现在最好的营销方式
  • 做优品购类似网站桂林最新消息今天
  • wordpress 发布时间不对搜索引擎优化seo多少钱
  • 成都最新的防疫通告爱站工具seo综合查询
  • 北京营销型网站建设简单的网页设计源代码
  • 对电子政务做技术支持的网站网络推广公司有哪些
  • 做学术用的网站武汉百度推广公司
  • inititle 网站建设百度一下打开
  • 做木材加工的企业网站首页如何做平台推广
  • 商业网站建设开发中心seo从零开始到精通200讲解
  • 重庆新增10个高风险区沧州网站建设优化公司
  • 怎么建设网站多少钱seo专业技术培训
  • 做火锅加盟哪个网站好天津网站策划
  • 网站开发流程步骤 口袋公司网站推广费用
  • 重庆微信网站作公司产品全网营销推广
  • 企业网站建立的流程友情链接作用
  • 石家庄免费专业做网站网站推广有哪些方式
  • 什么网站可以做外贸爱站工具包手机版
  • 如何做徽商网站营销网站模板
  • 做现货需要关注的网站百度seo如何快速排名
  • 做微网站公司吉林关键词优化的方法
  • 泉州做网站优化价格google翻译
  • 网站换空间有影响吗营销渠道分为三种模式
  • 网站如何做搜索功能的seow是什么意思
  • 怎么创网站推广赚佣金的软件排名
  • 搭建一个网站教程搜索引擎营销的特点包括
  • 微信后台网站开发知识体系网站seo方案案例
  • 智慧团建网站密码忘了东莞网站建设推广品众
  • 网站建设阐述网络营销方法有几种类型
  • 网站开发基于百度地图今天最新军事新闻视频