前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >在fly.io部署Uptime Kuma

在fly.io部署Uptime Kuma

原创
作者头像
不回头的浪子
发布2023-12-29 11:02:05
2150
发布2023-12-29 11:02:05
举报
文章被收录于专栏:部署部署

Uptime Kuma

Uptime Kuma是一个监控面板

准备

fly.io的账号

fly的命令行工具

具体步骤

创建一个目录

在该目录下执行

代码语言:bash
复制
flyctl launch

会提示如下

代码语言:bash
复制
Scanning source code
Could not find a Dockerfile, nor detect a runtime or framework from source code. Continuing with a blank app.
Creating app in C:\Users\Administrator\Desktop\uptime
We're about to launch your app on Fly.io. Here's what you're getting:

Organization: albert sun             (fly launch defaults to the personal org)
Name:         uptime                 (derived from your directory name)
Region:       Hong Kong, Hong Kong   (this is the fastest region for you)
App Machines: shared-cpu-1x, 1GB RAM (most apps need about 1GB of RAM)
Postgres:     <none>                 (not requested)
Redis:        <none>                 (not requested)

? Do you want to tweak these settings before proceeding?

此时按Y,根据弹出的网页填写,选择256MB 服务器所在地为HKG

根目录下会生成fly.toml文件

继续执行

代码语言:bash
复制
flyctl volumes create uptime_data --region hkg --size 1

创建一个服务所在地 为中国香港的1g的持久卷

修改fly.toml文件内容

以下仅供参考

代码语言:yaml
复制
# fly.toml app configuration file generated for uptime00 on 2023-12-29T10:46:36+08:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "uptime00"
primary_region = "hkg"

[build]
  image = "louislam/uptime-kuma:latest"

[[mounts]]
  source = "uptime_data"
  destination = "/app/data"

[http_service]
  internal_port = 3001
  force_https = true
  auto_stop_machines = false
  auto_start_machines = true
  min_machines_running = 0
  processes = ["app"]

[[vm]]
  cpu_kind = "shared"
  cpus = 1
  memory_mb = 256

修改完成后

执行

代码语言:bash
复制
fly deploy

即可

演示地址

https://uptime00.fly.dev/

绑定域名演示

https://www.0tz.top

原文地址https://blog.hb.cn/archives/1703818863843

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Uptime Kuma
  • 准备
  • 具体步骤
  • 演示地址
相关产品与服务
云数据库 Redis
腾讯云数据库 Redis(TencentDB for Redis)是腾讯云打造的兼容 Redis 协议的缓存和存储服务。丰富的数据结构能帮助您完成不同类型的业务场景开发。支持主从热备,提供自动容灾切换、数据备份、故障迁移、实例监控、在线扩容、数据回档等全套的数据库服务。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档