实现 LightOps 运维面板基础功能
This commit is contained in:
151
store/catalog/default.toml
Normal file
151
store/catalog/default.toml
Normal file
@@ -0,0 +1,151 @@
|
||||
[[apps]]
|
||||
slug = "alist"
|
||||
name = "Alist"
|
||||
description = "轻量网盘目录程序,适合统一挂载和分享文件。"
|
||||
category = "storage"
|
||||
image = "xhofe/alist:latest"
|
||||
default_port = 5244
|
||||
container_port = 5244
|
||||
data_dir_suffix = "data"
|
||||
tags = ["网盘", "文件", "Docker"]
|
||||
compose_template = """
|
||||
services:
|
||||
app:
|
||||
image: {{image}}
|
||||
container_name: {{project}}
|
||||
ports:
|
||||
- "{{port}}:{{container_port}}"
|
||||
volumes:
|
||||
- "{{data_dir}}:/opt/alist/data"
|
||||
restart: unless-stopped
|
||||
"""
|
||||
|
||||
[[apps]]
|
||||
slug = "uptime-kuma"
|
||||
name = "Uptime Kuma"
|
||||
description = "开源服务可用性监控和状态页。"
|
||||
category = "monitoring"
|
||||
image = "louislam/uptime-kuma:1"
|
||||
default_port = 3001
|
||||
container_port = 3001
|
||||
data_dir_suffix = "data"
|
||||
tags = ["监控", "状态页", "Docker"]
|
||||
compose_template = """
|
||||
services:
|
||||
app:
|
||||
image: {{image}}
|
||||
container_name: {{project}}
|
||||
ports:
|
||||
- "{{port}}:{{container_port}}"
|
||||
volumes:
|
||||
- "{{data_dir}}:/app/data"
|
||||
restart: unless-stopped
|
||||
"""
|
||||
|
||||
[[apps]]
|
||||
slug = "gitea"
|
||||
name = "Gitea"
|
||||
description = "轻量 Git 代码托管服务。"
|
||||
category = "dev"
|
||||
image = "gitea/gitea:1.22"
|
||||
default_port = 3000
|
||||
container_port = 3000
|
||||
data_dir_suffix = "data"
|
||||
tags = ["Git", "代码仓库", "Docker"]
|
||||
compose_template = """
|
||||
services:
|
||||
gitea:
|
||||
image: {{image}}
|
||||
container_name: {{project}}
|
||||
ports:
|
||||
- "{{port}}:3000"
|
||||
- "{{field.ssh_port}}:22"
|
||||
volumes:
|
||||
- "{{data_dir}}:/data"
|
||||
environment:
|
||||
- USER_UID={{field.user_uid}}
|
||||
- USER_GID={{field.user_gid}}
|
||||
restart: unless-stopped
|
||||
"""
|
||||
|
||||
[[apps.fields]]
|
||||
key = "ssh_port"
|
||||
label = "SSH 端口"
|
||||
type = "port"
|
||||
required = true
|
||||
default = 2222
|
||||
help = "Gitea Git SSH 克隆端口,必须未被占用。"
|
||||
|
||||
[[apps.fields]]
|
||||
key = "user_uid"
|
||||
label = "运行 UID"
|
||||
type = "number"
|
||||
required = true
|
||||
default = 1000
|
||||
min = 1
|
||||
max = 65535
|
||||
|
||||
[[apps.fields]]
|
||||
key = "user_gid"
|
||||
label = "运行 GID"
|
||||
type = "number"
|
||||
required = true
|
||||
default = 1000
|
||||
min = 1
|
||||
max = 65535
|
||||
|
||||
[[apps]]
|
||||
slug = "redis"
|
||||
name = "Redis"
|
||||
description = "内存键值数据库,启用 AOF 持久化。"
|
||||
category = "database"
|
||||
image = "redis:7-alpine"
|
||||
default_port = 6379
|
||||
container_port = 6379
|
||||
data_dir_suffix = "data"
|
||||
tags = ["数据库", "缓存", "Docker"]
|
||||
compose_template = """
|
||||
services:
|
||||
redis:
|
||||
image: {{image}}
|
||||
container_name: {{project}}
|
||||
ports:
|
||||
- "{{port}}:6379"
|
||||
volumes:
|
||||
- "{{data_dir}}:/data"
|
||||
command: redis-server --appendonly yes
|
||||
restart: unless-stopped
|
||||
"""
|
||||
|
||||
[[apps]]
|
||||
slug = "nginx"
|
||||
name = "Nginx 示例站"
|
||||
description = "快速启动一个 Nginx 静态站容器。"
|
||||
category = "web"
|
||||
image = "nginx:alpine"
|
||||
default_port = 8080
|
||||
container_port = 80
|
||||
data_dir_suffix = "html"
|
||||
tags = ["Web", "静态站", "Docker"]
|
||||
compose_template = """
|
||||
services:
|
||||
web:
|
||||
image: {{image}}
|
||||
container_name: {{project}}
|
||||
ports:
|
||||
- "{{port}}:80"
|
||||
volumes:
|
||||
- "{{data_dir}}:/usr/share/nginx/html"
|
||||
environment:
|
||||
- LIGHTOPS_SITE_NAME={{field.site_name}}
|
||||
restart: unless-stopped
|
||||
"""
|
||||
|
||||
[[apps.fields]]
|
||||
key = "site_name"
|
||||
label = "站点名称"
|
||||
type = "text"
|
||||
required = false
|
||||
default = "LightOps 示例站"
|
||||
placeholder = "例如:我的网站"
|
||||
max = 80
|
||||
Reference in New Issue
Block a user