搭建一个专属自己的网站监控——Uptime Kuma

安装Docker或者Docker-compose

Docker-compose代码

version: '3.3'

services:
  uptime-kuma:
    image: louislam/uptime-kuma
    container_name: uptime-kuma
    volumes:
      - ./uptime-kuma:/app/data
    ports:
      - 3001:3001

反向代理

server  {
    listen 80;
    server_name    vps.7boe.top;
    location / {
        proxy_pass         http://localhost:3001;
        proxy_http_version 1.1;
        proxy_set_header   Upgrade $http_upgrade;
        proxy_set_header   Connection "upgrade";
        proxy_set_header   Host $host;
    }
}

Docker安装推送镜像

docker pull louislam/uptime-kuma

将宿主机的目录挂载到容器内

docker volume create uptime-kuma

创建容器

docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1

作者GitHub项目界面

https://github.com/louislam/uptime-kuma

作者Docker安装方式

https://hub.docker.com/r/louislam/uptime-kuma

本站成品
http://vps.7boe.top/status/a1