1panel-toolkit 0.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 1panel_toolkit-0.3.0.dist-info/METADATA +407 -0
- 1panel_toolkit-0.3.0.dist-info/RECORD +47 -0
- 1panel_toolkit-0.3.0.dist-info/WHEEL +4 -0
- 1panel_toolkit-0.3.0.dist-info/entry_points.txt +2 -0
- 1panel_toolkit-0.3.0.dist-info/licenses/LICENSE +21 -0
- p1toolkit/__init__.py +3 -0
- p1toolkit/checks/__init__.py +21 -0
- p1toolkit/checks/compose.py +188 -0
- p1toolkit/checks/forms.py +129 -0
- p1toolkit/checks/hygiene.py +73 -0
- p1toolkit/checks/i18n.py +140 -0
- p1toolkit/checks/lessons.py +111 -0
- p1toolkit/checks/structure.py +140 -0
- p1toolkit/checks/substance.py +55 -0
- p1toolkit/cli.py +890 -0
- p1toolkit/config.py +114 -0
- p1toolkit/dependencies.py +218 -0
- p1toolkit/deploy.py +302 -0
- p1toolkit/depth.py +414 -0
- p1toolkit/errors.py +18 -0
- p1toolkit/evidence.py +523 -0
- p1toolkit/fix.py +394 -0
- p1toolkit/gen.py +728 -0
- p1toolkit/lifecycle.py +143 -0
- p1toolkit/loader.py +110 -0
- p1toolkit/logo.py +174 -0
- p1toolkit/model.py +71 -0
- p1toolkit/net.py +81 -0
- p1toolkit/panel.py +154 -0
- p1toolkit/patterns/__init__.py +250 -0
- p1toolkit/patterns/catalog.py +271 -0
- p1toolkit/patterns/data/patterns.json +724 -0
- p1toolkit/patterns/extract.py +402 -0
- p1toolkit/remote.py +554 -0
- p1toolkit/report.py +96 -0
- p1toolkit/resolve/__init__.py +554 -0
- p1toolkit/resolve/analyze.py +329 -0
- p1toolkit/resolve/sources.py +306 -0
- p1toolkit/rules/__init__.py +99 -0
- p1toolkit/rules/data/decisions.yaml +132 -0
- p1toolkit/rules/data/dependencies.yaml +113 -0
- p1toolkit/rules/data/envkeys.yaml +19 -0
- p1toolkit/rules/data/form-design.yaml +59 -0
- p1toolkit/rules/data/i18n.yaml +354 -0
- p1toolkit/rules/data/lessons.yaml +84 -0
- p1toolkit/rules/data/store.yaml +171 -0
- p1toolkit/selftest.py +211 -0
|
@@ -0,0 +1,724 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"generated_from": [
|
|
4
|
+
{
|
|
5
|
+
"label": "appstore-localApps/apps",
|
|
6
|
+
"apps": 771,
|
|
7
|
+
"versions": 1405
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"label": "1Panel-Appstore-main/apps",
|
|
11
|
+
"apps": 111,
|
|
12
|
+
"versions": 212
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"patterns": [
|
|
16
|
+
{
|
|
17
|
+
"id": "data-yml/root-declaration",
|
|
18
|
+
"title": "应用声明文件 apps/<key>/data.yml",
|
|
19
|
+
"category": "data-yml",
|
|
20
|
+
"intent": "声明应用是谁:key、名称、分类、类型、官网/仓库/文档地址、跨版本升级能力。",
|
|
21
|
+
"when_to_use": "每个新包的第一份文件。key 只用小写英文,它决定 Linux 上创建的目录名。",
|
|
22
|
+
"notes": [
|
|
23
|
+
"type 官方只认 website / runtime / tool;website 类型可以在「网站」里一键部署。",
|
|
24
|
+
"shortDescZh 不要超过 30 个字。",
|
|
25
|
+
"limit 是安装数量限制,0 表示不限制。"
|
|
26
|
+
],
|
|
27
|
+
"apps": 844,
|
|
28
|
+
"versions": 882,
|
|
29
|
+
"examples": [
|
|
30
|
+
{
|
|
31
|
+
"app": "netdata",
|
|
32
|
+
"version": "-",
|
|
33
|
+
"file": "data.yml",
|
|
34
|
+
"snippet": "name: Netdata\ntags:\n - 实用工具\ntitle: 一个实时监控工具\ndescription: 一个实时监控工具\nadditionalProperties:\n key: netdata\n name: Netdata\n tags:\n - Tool\n shortDescZh: 一个实时监控工具\n shortDescEn: Real-time monitoring tool\n type: website\n crossVersionUpdate: true\n limit: 0\n recommend: 0\n website: https://www.netdata.cloud\n github: https://github.com/netdata/netdata\n document: https://learn.netdata.cloud/docs/\n architectures:\n - amd64\n - arm64"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"app": "md",
|
|
38
|
+
"version": "-",
|
|
39
|
+
"file": "data.yml",
|
|
40
|
+
"snippet": "name: MD\ntags:\n - 实用工具\ntitle: 微信Markdown编辑器\ndescription: 一款高度简洁的微信Markdown编辑器\nadditionalProperties:\n key: md\n name: MD\n tags:\n - Tool\n shortDescZh: 一款高度简洁的微信 Markdown 编辑器\n shortDescEn: WeChat Markdown Editor\n type: website\n crossVersionUpdate: true\n limit: 0\n recommend: 0\n website: https://doocs.github.io/md/\n github: https://github.com/doocs/md\n document: https://github.com/doocs/md\n architectures:\n - amd64\n - arm64"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"app": "wud",
|
|
44
|
+
"version": "-",
|
|
45
|
+
"file": "data.yml",
|
|
46
|
+
"snippet": "name: Wud\ntags:\n - 实用工具\ntitle: 监控Docker基础镜像自动更新\ndescription: 自动更新Docker镜像的工具,支持Web管理\nadditionalProperties:\n key: wud\n name: Wud\n tags:\n - Tools\n shortDescZh: 监控Docker基础镜像自动更新\n shortDescEn: Keep your containers up-to-date!\n type: website\n crossVersionUpdate: true\n limit: 0\n recommend: 0\n architectures:\n - amd64\n - arm64\n website: https://getwud.github.io/wud/\n github: https://github.com/getwud/wud\n document: https://github.com/getwud/wud"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": "data-yml/version-form",
|
|
52
|
+
"title": "版本参数文件 <version>/data.yml",
|
|
53
|
+
"category": "data-yml",
|
|
54
|
+
"intent": "定义安装表单,表单值即 docker-compose.yml 里 ${VAR} 的来源。",
|
|
55
|
+
"when_to_use": "任何需要用户输入端口、密码、地址的包。可以没有表单,但文件必须存在且含 formFields。",
|
|
56
|
+
"notes": [
|
|
57
|
+
"formFields 必须写在 additionalProperties 下面。",
|
|
58
|
+
"版本目录名不要以 v 开头,用 1.2.3 或 latest。"
|
|
59
|
+
],
|
|
60
|
+
"apps": 844,
|
|
61
|
+
"versions": 1615,
|
|
62
|
+
"examples": [
|
|
63
|
+
{
|
|
64
|
+
"app": "md",
|
|
65
|
+
"version": "latest",
|
|
66
|
+
"file": "latest/data.yml",
|
|
67
|
+
"snippet": "additionalProperties:\n formFields:\n - default: 8080\n edit: true\n envKey: PANEL_APP_PORT_HTTP\n labelEn: Port\n labelZh: 端口\n required: true\n rule: paramPort\n type: number"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"app": "md",
|
|
71
|
+
"version": "2.1.0",
|
|
72
|
+
"file": "2.1.0/data.yml",
|
|
73
|
+
"snippet": "additionalProperties:\n formFields:\n - default: 8080\n edit: true\n envKey: PANEL_APP_PORT_HTTP\n labelEn: Port\n labelZh: 端口\n required: true\n rule: paramPort\n type: number"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"app": "qexo",
|
|
77
|
+
"version": "latest",
|
|
78
|
+
"file": "latest/data.yml",
|
|
79
|
+
"snippet": "additionalProperties:\n formFields:\n - default: 40078\n edit: true\n envKey: PANEL_APP_PORT_HTTP\n labelEn: Port\n labelZh: 端口\n required: true\n rule: paramPort\n type: number"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"id": "form-field/service-db-selector",
|
|
85
|
+
"title": "数据库依赖选择器(type: service)",
|
|
86
|
+
"category": "form-field",
|
|
87
|
+
"intent": "让用户在安装表单里直接选一个面板上已安装的数据库实例,而不是手填主机地址。",
|
|
88
|
+
"when_to_use": "应用支持外部数据库,且面板上装了对应的数据库应用(mysql / postgresql / redis 等)。",
|
|
89
|
+
"notes": [
|
|
90
|
+
"key 是被依赖应用的 key(例如 mysql),不是展示名。",
|
|
91
|
+
"envKey 用 PANEL_DB_HOST,compose 里再映射到应用自己的变量名。",
|
|
92
|
+
"面板会注入 PANEL_DB_HOST / PANEL_DB_PORT,这两项不需要用户填。"
|
|
93
|
+
],
|
|
94
|
+
"apps": 23,
|
|
95
|
+
"versions": 46,
|
|
96
|
+
"examples": [
|
|
97
|
+
{
|
|
98
|
+
"app": "tianji",
|
|
99
|
+
"version": "latest",
|
|
100
|
+
"file": "data.yml",
|
|
101
|
+
"snippet": "default: ''\nedit: true\nenvKey: PANEL_DB_HOST\nkey: postgresql\nlabelEn: Database Service\nlabelZh: 数据库服务\nrequired: true\ntype: service"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"app": "tianji",
|
|
105
|
+
"version": "1.32.21",
|
|
106
|
+
"file": "data.yml",
|
|
107
|
+
"snippet": "default: ''\nedit: true\nenvKey: PANEL_DB_HOST\nkey: postgresql\nlabelEn: Database Service\nlabelZh: 数据库服务\nrequired: true\ntype: service"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"app": "proxy_pool",
|
|
111
|
+
"version": "latest",
|
|
112
|
+
"file": "data.yml",
|
|
113
|
+
"snippet": "default: ''\nedit: true\nenvKey: REDIS_HOST\nkey: redis\nlabelEn: Redis Host\nlabelZh: Redis 主机\nlabel:\n en: Redis Host\n zh: Redis 主机\n zh-Hant: Redis 主機\n ja: Redis ホスト\n ko: Redis 호스트\n ru: Хост Redis\n ms: Hos Redis\n pt-br: Host do Redis\nrequired: true\ntype: service"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "form-field/apps-child-service",
|
|
119
|
+
"title": "两步式依赖选择(type: apps + child.service)",
|
|
120
|
+
"category": "form-field",
|
|
121
|
+
"intent": "先选依赖类型(MySQL 还是 PostgreSQL),再选具体实例。",
|
|
122
|
+
"when_to_use": "同一个应用支持多种数据库引擎时。",
|
|
123
|
+
"notes": [
|
|
124
|
+
"values[].label 必须是纯字符串,写成多语言 map 会让面板反序列化失败。"
|
|
125
|
+
],
|
|
126
|
+
"apps": 41,
|
|
127
|
+
"versions": 72,
|
|
128
|
+
"examples": [
|
|
129
|
+
{
|
|
130
|
+
"app": "oneclickvirt",
|
|
131
|
+
"version": "latest",
|
|
132
|
+
"file": "data.yml",
|
|
133
|
+
"snippet": "child:\n default: ''\n envKey: PANEL_DB_HOST\n required: true\n type: service\ndefault: mysql\nenvKey: PANEL_DB_TYPE\nlabel:\n en: Database Service\n ja: データベースサービス\n ms: Perkhidmatan Pangkalan Data\n pt-br: Serviço de Banco de Dados\n ru: Сервис базы данных\n ko: 데이터베이스 서비스\n zh-Hant: 資料庫服務\n zh: 数据库服务\nrequired: true\ntype: apps\nvalues:\n- label: MySQL\n value: mysql\n- label: MariaDB\n value: mariadb"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"app": "blossom",
|
|
137
|
+
"version": "latest",
|
|
138
|
+
"file": "data.yml",
|
|
139
|
+
"snippet": "child:\n default: ''\n envKey: PANEL_DB_HOST\n required: true\n type: service\ndefault: mysql\nenvKey: PANEL_DB_TYPE\nlabelEn: Database Service\nlabelZh: 数据库服务\nlabel:\n en: Database Service\n zh: 数据库服务\n zh-Hant: 數據庫服務\n ja: データベースサービス\n ko: 데이터베이스 서비스\n ru: Сервис базы данных\n ms: Perkhidmatan Pangkalan Data\n pt-br: Serviço de Banco de Dados\nrequired: true\ntype: apps\nvalues:\n- label: MySQL\n value: mysql"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"app": "blossom",
|
|
143
|
+
"version": "1.16.0",
|
|
144
|
+
"file": "data.yml",
|
|
145
|
+
"snippet": "child:\n default: ''\n envKey: PANEL_DB_HOST\n required: true\n type: service\ndefault: mysql\nenvKey: PANEL_DB_TYPE\nlabelEn: Database Service\nlabelZh: 数据库服务\nlabel:\n en: Database Service\n zh: 数据库服务\n zh-Hant: 數據庫服務\n ja: データベースサービス\n ko: 데이터베이스 서비스\n ru: Сервис базы данных\n ms: Perkhidmatan Pangkalan Data\n pt-br: Serviço de Banco de Dados\nrequired: true\ntype: apps\nvalues:\n- label: MySQL\n value: mysql"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"id": "form-field/port",
|
|
151
|
+
"title": "端口字段(PANEL_APP_PORT_*)",
|
|
152
|
+
"category": "form-field",
|
|
153
|
+
"intent": "声明对外暴露的端口,1Panel 用它做端口占用检测。",
|
|
154
|
+
"when_to_use": "任何有对外服务的应用。",
|
|
155
|
+
"notes": [
|
|
156
|
+
"envKey 必须以 PANEL_APP_PORT_ 开头,否则面板不会做占用检测。",
|
|
157
|
+
"rule 固定用 paramPort,type 用 number。",
|
|
158
|
+
"容器侧端口要来自上游 EXPOSE 或官方 compose,不要照抄模板。"
|
|
159
|
+
],
|
|
160
|
+
"apps": 811,
|
|
161
|
+
"versions": 2062,
|
|
162
|
+
"examples": [
|
|
163
|
+
{
|
|
164
|
+
"app": "resilio-sync",
|
|
165
|
+
"version": "3.1.2.1076-1-ls254",
|
|
166
|
+
"file": "data.yml",
|
|
167
|
+
"snippet": "default: '40237'\nenvKey: PANEL_APP_PORT_HTTP\nlabelEn: Port\nlabelZh: 端口\nrequired: true\ntype: number\nedit: true"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"app": "opendeepwiki",
|
|
171
|
+
"version": "latest",
|
|
172
|
+
"file": "data.yml",
|
|
173
|
+
"snippet": "default: 8090\nedit: true\nenvKey: PANEL_APP_PORT_HTTP\nlabelZh: Web 端口\nrequired: true\nrule: paramPort\ntype: number"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"app": "resilio-sync",
|
|
177
|
+
"version": "3.1.2.1076-1-ls254",
|
|
178
|
+
"file": "data.yml",
|
|
179
|
+
"snippet": "default: '55555'\nenvKey: PANEL_APP_PORT_SYNC\nlabelEn: Sync Port\nlabelZh: 同步端口\nrequired: true\ntype: number\nedit: true"
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"id": "form-field/password",
|
|
185
|
+
"title": "密码字段(type: password)",
|
|
186
|
+
"category": "form-field",
|
|
187
|
+
"intent": "收集密码/密钥类输入,表单里以掩码显示。",
|
|
188
|
+
"when_to_use": "数据库密码、管理员密码、API Key 等。",
|
|
189
|
+
"notes": [
|
|
190
|
+
"配合 random: true 可以自动在默认值后追加随机串。",
|
|
191
|
+
"rule 常用 paramComplexity 做强度校验。"
|
|
192
|
+
],
|
|
193
|
+
"apps": 398,
|
|
194
|
+
"versions": 1139,
|
|
195
|
+
"examples": [
|
|
196
|
+
{
|
|
197
|
+
"app": "opendeepwiki",
|
|
198
|
+
"version": "latest",
|
|
199
|
+
"file": "data.yml",
|
|
200
|
+
"snippet": "default: your-api-key\nedit: true\nenvKey: CHAT_API_KEY\nlabelZh: API Key\nrequired: true\ntype: password"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"app": "beszel-agent",
|
|
204
|
+
"version": "latest",
|
|
205
|
+
"file": "data.yml",
|
|
206
|
+
"snippet": "default: ssh-ed25519 xxxxxx\nedit: true\nenvKey: KEY\nlabelEn: Key\nlabelZh: 密钥\nrequired: true\ntype: password"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"app": "beszel-agent",
|
|
210
|
+
"version": "0.18.7",
|
|
211
|
+
"file": "data.yml",
|
|
212
|
+
"snippet": "default: ssh-ed25519 xxxxxx\nedit: true\nenvKey: KEY\nlabelEn: Key\nlabelZh: 密钥\nrequired: true\ntype: password"
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": "form-field/text-random",
|
|
218
|
+
"title": "带随机后缀的文本字段(random: true)",
|
|
219
|
+
"category": "form-field",
|
|
220
|
+
"intent": "生成不会重复的资源名,例如数据库名、用户名。",
|
|
221
|
+
"when_to_use": "同一应用可能装多份、名字需要唯一时。",
|
|
222
|
+
"notes": [],
|
|
223
|
+
"apps": 67,
|
|
224
|
+
"versions": 250,
|
|
225
|
+
"examples": [
|
|
226
|
+
{
|
|
227
|
+
"app": "blinko",
|
|
228
|
+
"version": "latest",
|
|
229
|
+
"file": "data.yml",
|
|
230
|
+
"snippet": "default: blinko\nenvKey: PANEL_DB_USER\nlabelEn: User\nlabelZh: 数据库用户\nrandom: true\nrequired: true\nrule: paramCommon\ntype: text"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"app": "blinko",
|
|
234
|
+
"version": "1.8.8",
|
|
235
|
+
"file": "data.yml",
|
|
236
|
+
"snippet": "default: blinko\nenvKey: PANEL_DB_USER\nlabelEn: User\nlabelZh: 数据库用户\nrandom: true\nrequired: true\nrule: paramCommon\ntype: text"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"app": "blinko",
|
|
240
|
+
"version": "latest",
|
|
241
|
+
"file": "data.yml",
|
|
242
|
+
"snippet": "default: blinko\nenvKey: PANEL_DB_NAME\nlabelEn: Database\nlabelZh: 数据库名\nrandom: true\nrequired: true\nrule: paramCommon\ntype: text"
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"id": "form-field/select",
|
|
248
|
+
"title": "枚举字段(type: select)",
|
|
249
|
+
"category": "form-field",
|
|
250
|
+
"intent": "把有限的取值做成下拉框,避免用户填错。",
|
|
251
|
+
"when_to_use": "日志级别、运行模式、提供商选择、开关类 true/false。",
|
|
252
|
+
"notes": [
|
|
253
|
+
"values[].label 必须是纯字符串;true/false 也要写成带引号的字符串。"
|
|
254
|
+
],
|
|
255
|
+
"apps": 253,
|
|
256
|
+
"versions": 993,
|
|
257
|
+
"examples": [
|
|
258
|
+
{
|
|
259
|
+
"app": "docker-socket-proxy",
|
|
260
|
+
"version": "latest",
|
|
261
|
+
"file": "data.yml",
|
|
262
|
+
"snippet": "default: '0'\nenvKey: AUTH\nrequired: false\ntype: select\nlabelEn: AUTH\nlabelZh: AUTH(认证)\nvalues:\n- label: 0-关闭\n value: '0'\n- label: 1-开启\n value: '1'"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"app": "docker-socket-proxy",
|
|
266
|
+
"version": "latest",
|
|
267
|
+
"file": "data.yml",
|
|
268
|
+
"snippet": "default: '0'\nenvKey: EXEC\nrequired: false\ntype: select\nlabelEn: EXEC\nlabelZh: EXEC(执行)\nvalues:\n- label: 0-禁止\n value: '0'\n- label: 1-允许\n value: '1'"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"app": "docker-socket-proxy",
|
|
272
|
+
"version": "latest",
|
|
273
|
+
"file": "data.yml",
|
|
274
|
+
"snippet": "default: '0'\nenvKey: INFO\nrequired: false\ntype: select\nlabelEn: INFO\nlabelZh: INFO(信息)\nvalues:\n- label: 0-禁止\n value: '0'\n- label: 1-允许\n value: '1'"
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"id": "form-field/i18n-label",
|
|
280
|
+
"title": "表单字段的多语言 label",
|
|
281
|
+
"category": "form-field",
|
|
282
|
+
"intent": "让安装表单在 10 种语言下都显示母语。",
|
|
283
|
+
"when_to_use": "所有面向 appstore 的包。",
|
|
284
|
+
"notes": [
|
|
285
|
+
"官方同时写 labelZh/labelEn 和 label 多语言 map,两者都保留兼容性最好。",
|
|
286
|
+
"语言集:en / es-es / ja / ms / pt-br / ru / ko / zh-Hant / zh / tr。"
|
|
287
|
+
],
|
|
288
|
+
"apps": 787,
|
|
289
|
+
"versions": 9865,
|
|
290
|
+
"examples": [
|
|
291
|
+
{
|
|
292
|
+
"app": "php",
|
|
293
|
+
"version": "5",
|
|
294
|
+
"file": "data.yml",
|
|
295
|
+
"snippet": "default: 5.6.40\nenvKey: PHP_VERSION\nlabelEn: PHP Version\nlabelZh: PHP 版本\nlabel:\n en: PHP Version\n zh: PHP 版本\n es-es: Versión de PHP\n fa: نسخه PHP\n zh-Hant: PHP 版本\n ja: PHP バージョン\n ko: PHP 버전\n ms: Versi PHP\n pt-br: Versão do PHP\n ru: Версия PHP\n tr: PHP sürümü\nrequired: true\ntype: select\nvalues:\n- label: 5.6.40\n value: 5.6.40"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"app": "php",
|
|
299
|
+
"version": "5",
|
|
300
|
+
"file": "data.yml",
|
|
301
|
+
"snippet": "default: 9000\nenvKey: PANEL_APP_PORT_HTTP\nlabelEn: PHP-FPM Port\nlabelZh: PHP-FPM 端口\nlabel:\n en: PHP-FPM Port\n zh: PHP-FPM 端口\n es-es: PHP-FPM Puerto\n fa: پورت PHP-FPM\n zh-Hant: PHP-FPM 埠\n ja: PHP-FPM ポート\n ko: PHP-FPM 포트\n ms: Port PHP-FPM\n pt-br: Porta PHP-FPM\n ru: Порт PHP-FPM\n tr: PHP-FPM Bağlantı Noktası\nrequired: true\nrule: paramPort\ntype: number"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"app": "php",
|
|
305
|
+
"version": "7",
|
|
306
|
+
"file": "data.yml",
|
|
307
|
+
"snippet": "default: 9000\nenvKey: PANEL_APP_PORT_HTTP\nlabelEn: PHP-FPM Port\nlabelZh: PHP-FPM 端口\nlabel:\n en: PHP-FPM Port\n zh: PHP-FPM 端口\n es-es: PHP-FPM Puerto\n fa: پورت PHP-FPM\n zh-Hant: PHP-FPM 埠\n ja: PHP-FPM ポート\n ko: PHP-FPM 포트\n ms: Port PHP-FPM\n pt-br: Porta PHP-FPM\n ru: Порт PHP-FPM\n tr: PHP-FPM Bağlantı Noktası\nrequired: true\nrule: paramPort\ntype: number"
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"id": "compose/single-service",
|
|
313
|
+
"title": "单服务 compose",
|
|
314
|
+
"category": "compose",
|
|
315
|
+
"intent": "最常见形态:一个应用容器 + 一个持久化目录 + 一个对外端口。",
|
|
316
|
+
"when_to_use": "默认选择。能用单服务就别上多服务。",
|
|
317
|
+
"notes": [
|
|
318
|
+
"不要写顶层 version:,1Panel / Compose 会忽略并告警。",
|
|
319
|
+
"container_name 用 ${CONTAINER_NAME},由面板在安装时注入。"
|
|
320
|
+
],
|
|
321
|
+
"apps": 769,
|
|
322
|
+
"versions": 1450,
|
|
323
|
+
"examples": [
|
|
324
|
+
{
|
|
325
|
+
"app": "frp-panel",
|
|
326
|
+
"version": "latest",
|
|
327
|
+
"file": "latest/docker-compose.yml",
|
|
328
|
+
"snippet": "services:\n frp-panel:\n container_name: ${CONTAINER_NAME}\n restart: always\n network_mode: host\n command: ${COMMAND_LINE}\n image: vaalacat/frp-panel:latest\n labels: \n createdBy: \"Apps\""
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"app": "frp-panel",
|
|
332
|
+
"version": "0.1.37",
|
|
333
|
+
"file": "0.1.37/docker-compose.yml",
|
|
334
|
+
"snippet": "services:\n frp-panel:\n container_name: ${CONTAINER_NAME}\n restart: always\n network_mode: host\n command: ${COMMAND_LINE}\n image: vaalacat/frp-panel:v0.1.37\n labels: \n createdBy: \"Apps\""
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"app": "lucky",
|
|
338
|
+
"version": "3.0.0",
|
|
339
|
+
"file": "3.0.0/docker-compose.yml",
|
|
340
|
+
"snippet": "services:\n lucky:\n container_name: ${CONTAINER_NAME}\n restart: always\n network_mode: host\n volumes:\n - ${DATA_PATH}:/goodluck\n image: gdy666/lucky:3.0.0\n labels: \n createdBy: \"Apps\""
|
|
341
|
+
}
|
|
342
|
+
]
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"id": "compose/multi-service",
|
|
346
|
+
"title": "多服务 compose",
|
|
347
|
+
"category": "compose",
|
|
348
|
+
"intent": "主服务 + 数据库/缓存/前端控制台等旁挂服务。",
|
|
349
|
+
"when_to_use": "上游本身就是多容器架构,且不适合拆成面板托管依赖时。",
|
|
350
|
+
"notes": [
|
|
351
|
+
"次要服务容器名用 ${CONTAINER_NAME}-<suffix>。",
|
|
352
|
+
"主服务同时接入 1panel-network 和内部网络时,不要用 redis/mysql 这类裸名做主机名,会 DNS 撞名。"
|
|
353
|
+
],
|
|
354
|
+
"apps": 87,
|
|
355
|
+
"versions": 167,
|
|
356
|
+
"examples": [
|
|
357
|
+
{
|
|
358
|
+
"app": "next-ai-draw-io",
|
|
359
|
+
"version": "latest",
|
|
360
|
+
"file": "latest/docker-compose.yml",
|
|
361
|
+
"snippet": "services:\n next-ai-draw-io:\n image: ghcr.io/dayuanjiang/next-ai-draw-io:latest\n ports:\n - ${PANEL_APP_PORT_HTTP}:3000\n depends_on:\n - drawio\n container_name: ${CONTAINER_NAME}\n networks:\n - 1panel-network\n labels:\n createdBy: Apps\n restart: always\n drawio:\n image: jgraph/drawio:latest\n ports:\n - 8080:8080\n container_name: ${CONTAINER_NAME}-drawio\n networks:\n - 1panel-network\n labels:\n createdBy: Apps\n restart: always\nnetworks:\n 1panel-network:\n external: true"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"app": "next-ai-draw-io",
|
|
365
|
+
"version": "0.4.15",
|
|
366
|
+
"file": "0.4.15/docker-compose.yml",
|
|
367
|
+
"snippet": "services:\n next-ai-draw-io:\n image: ghcr.io/dayuanjiang/next-ai-draw-io:0.4.15\n ports:\n - ${PANEL_APP_PORT_HTTP}:3000\n depends_on:\n - drawio\n container_name: ${CONTAINER_NAME}\n networks:\n - 1panel-network\n labels:\n createdBy: Apps\n restart: always\n drawio:\n image: jgraph/drawio:latest\n ports:\n - 8080:8080\n container_name: ${CONTAINER_NAME}-drawio\n networks:\n - 1panel-network\n labels:\n createdBy: Apps\n restart: always\nnetworks:\n 1panel-network:\n external: true"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"app": "chatgpt-adapter",
|
|
371
|
+
"version": "latest",
|
|
372
|
+
"file": "latest/docker-compose.yml",
|
|
373
|
+
"snippet": "services:\n chatgpt-adapter:\n image: ghcr.io/bincooo/chatgpt-adapter:latest\n container_name: ${CONTAINER_NAME}\n restart: always\n networks:\n - 1panel-network\n volumes:\n - './config.yaml:/app/config.yaml'\n ports:\n - ${PANEL_APP_PORT_HTTP}:8080\n labels:\n createdBy: \"Apps\"\n browser-less:\n image: browserless/chrome:latest\n container_name: ${CONTAINER_NAME}-browser\n restart: always\n environment:\n - CONCURRENT=10\n - TOKEN=your-browser-token\n ports:\n - ${PANEL_APP_PORT_BROWSER}:3000\n networks:\n - 1panel-network\n labels:\n createdBy: \"Apps\"\nnetworks:\n 1panel-network:\n external: true"
|
|
374
|
+
}
|
|
375
|
+
]
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"id": "compose/panel-db-env",
|
|
379
|
+
"title": "把面板数据库注入到应用变量",
|
|
380
|
+
"category": "compose",
|
|
381
|
+
"intent": "把 1Panel 的 PANEL_DB_* 映射成应用自己认识的 DATABASE_* 变量。",
|
|
382
|
+
"when_to_use": "表单里用了数据库选择器时。",
|
|
383
|
+
"notes": [],
|
|
384
|
+
"apps": 43,
|
|
385
|
+
"versions": 100,
|
|
386
|
+
"examples": [
|
|
387
|
+
{
|
|
388
|
+
"app": "forgejo",
|
|
389
|
+
"version": "16",
|
|
390
|
+
"file": "16/docker-compose.yml",
|
|
391
|
+
"snippet": "services:\n forgejo:\n image: codeberg.org/forgejo/forgejo:16\n environment:\n - USER_UID=1000\n - USER_GID=1000\n - forgejo__database__DB_TYPE=${PANEL_DB_TYPE}\n - forgejo__database__HOST=${PANEL_DB_HOST}:${PANEL_DB_PORT}\n - forgejo__database__NAME=${PANEL_DB_NAME}\n - forgejo__database__USER=${PANEL_DB_USER}\n - forgejo__database__PASSWD=${PANEL_DB_USER_PASSWORD}"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"app": "blossom",
|
|
395
|
+
"version": "latest",
|
|
396
|
+
"file": "latest/docker-compose.yml",
|
|
397
|
+
"snippet": "services:\n blossom:\n image: jasminexzzz/blossom:latest\n environment:\n SPRING_DATASOURCE_URL: jdbc:${PANEL_DB_TYPE}://${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}?useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&allowMultiQueries=true&useSSL=false&&serverTimezone=GMT%2B8\n SPRING_DATASOURCE_USERNAME: ${PANEL_DB_USER}\n SPRING_DATASOURCE_PASSWORD: ${PANEL_DB_USER_PASSWORD}"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"app": "blossom",
|
|
401
|
+
"version": "1.16.0",
|
|
402
|
+
"file": "1.16.0/docker-compose.yml",
|
|
403
|
+
"snippet": "services:\n blossom:\n image: jasminexzzz/blossom:1.16.0\n environment:\n SPRING_DATASOURCE_URL: jdbc:${PANEL_DB_TYPE}://${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}?useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&allowMultiQueries=true&useSSL=false&&serverTimezone=GMT%2B8\n SPRING_DATASOURCE_USERNAME: ${PANEL_DB_USER}\n SPRING_DATASOURCE_PASSWORD: ${PANEL_DB_USER_PASSWORD}"
|
|
404
|
+
}
|
|
405
|
+
]
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"id": "compose/panel-redis-env",
|
|
409
|
+
"title": "把面板 Redis 注入到应用变量",
|
|
410
|
+
"category": "compose",
|
|
411
|
+
"intent": "接入面板托管的 Redis。",
|
|
412
|
+
"when_to_use": "应用依赖 Redis 且面板上装了 redis 应用。",
|
|
413
|
+
"notes": [],
|
|
414
|
+
"apps": 20,
|
|
415
|
+
"versions": 55,
|
|
416
|
+
"examples": [
|
|
417
|
+
{
|
|
418
|
+
"app": "netbox-linuxserver",
|
|
419
|
+
"version": "4.6.7",
|
|
420
|
+
"file": "4.6.7/docker-compose.yml",
|
|
421
|
+
"snippet": "services:\n netbox:\n image: linuxserver/netbox:4.6.7\n environment:\n - PUID=1000\n - PGID=1000\n - TZ=${TIME_ZONE}\n - SUPERUSER_EMAIL=${SUPERUSER_EMAIL}\n - SUPERUSER_PASSWORD=${SUPERUSER_PASSWORD}\n - ALLOWED_HOST=${ALLOWED_HOST}\n - DB_NAME=${DB_NAME}\n - DB_USER=${DB_USER}\n - DB_PASSWORD=${DB_PASSWORD}\n - DB_HOST=${DB_HOST}\n - DB_PORT=${DB_PORT}\n - REDIS_HOST=${REDIS_HOST}\n - REDIS_PORT=${REDIS_PORT}\n - REDIS_USERNAME=${REDIS_USERNAME:-}\n - REDIS_PASSWORD=${REDIS_PASSWORD:-}\n - REDIS_DB_TASK=${REDIS_DB_TASK}\n - REDIS_DB_CACHE=${REDIS_DB_CACHE}\n - BASE_PATH=${BASE_PATH:-}\n - CSRF_TRUSTED_ORIGINS=${CSRF_TRUSTED_ORIGINS:-}"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"app": "netbox-linuxserver",
|
|
425
|
+
"version": "latest",
|
|
426
|
+
"file": "latest/docker-compose.yml",
|
|
427
|
+
"snippet": "services:\n netbox:\n image: linuxserver/netbox:latest\n environment:\n - PUID=1000\n - PGID=1000\n - TZ=${TIME_ZONE}\n - SUPERUSER_EMAIL=${SUPERUSER_EMAIL}\n - SUPERUSER_PASSWORD=${SUPERUSER_PASSWORD}\n - ALLOWED_HOST=${ALLOWED_HOST}\n - DB_NAME=${DB_NAME}\n - DB_USER=${DB_USER}\n - DB_PASSWORD=${DB_PASSWORD}\n - DB_HOST=${DB_HOST}\n - DB_PORT=${DB_PORT}\n - REDIS_HOST=${REDIS_HOST}\n - REDIS_PORT=${REDIS_PORT}\n - REDIS_USERNAME=${REDIS_USERNAME:-}\n - REDIS_PASSWORD=${REDIS_PASSWORD:-}\n - REDIS_DB_TASK=${REDIS_DB_TASK}\n - REDIS_DB_CACHE=${REDIS_DB_CACHE}\n - BASE_PATH=${BASE_PATH:-}\n - CSRF_TRUSTED_ORIGINS=${CSRF_TRUSTED_ORIGINS:-}"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"app": "proxy_pool",
|
|
431
|
+
"version": "latest",
|
|
432
|
+
"file": "latest/docker-compose.yml",
|
|
433
|
+
"snippet": "services:\n proxy_pool:\n image: jhao104/proxy_pool:latest\n environment:\n - DB_CONN=redis://:${PANEL_REDIS_ROOT_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}/${REDIS_DB_NUMBER}"
|
|
434
|
+
}
|
|
435
|
+
]
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"id": "compose/healthcheck",
|
|
439
|
+
"title": "服务健康检查",
|
|
440
|
+
"category": "compose",
|
|
441
|
+
"intent": "让依赖方等到真正就绪,而不是只等到容器启动。",
|
|
442
|
+
"when_to_use": "多服务且存在启动顺序依赖时。",
|
|
443
|
+
"notes": [
|
|
444
|
+
"只保证启动顺序的 depends_on 不够,首次启动常见「主服务连不上数据库」。",
|
|
445
|
+
"另一种做法是让应用自身带重连逻辑,并在 README 里说明。"
|
|
446
|
+
],
|
|
447
|
+
"apps": 194,
|
|
448
|
+
"versions": 425,
|
|
449
|
+
"examples": [
|
|
450
|
+
{
|
|
451
|
+
"app": "bokebox",
|
|
452
|
+
"version": "1.1.1",
|
|
453
|
+
"file": "1.1.1/docker-compose.yml",
|
|
454
|
+
"snippet": "services:\n bokebox:\n image: ghcr.io/vastsa/bokebox:1.1.1\n healthcheck:\n disable: true\n depends_on: null"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"app": "immich",
|
|
458
|
+
"version": "1.122.3",
|
|
459
|
+
"file": "1.122.3/docker-compose.yml",
|
|
460
|
+
"snippet": "services:\n immich-redis:\n image: redis:6.2-alpine\n healthcheck:\n test: redis-cli ping || exit 1\n depends_on: null"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"app": "immich",
|
|
464
|
+
"version": "release",
|
|
465
|
+
"file": "release/docker-compose.yml",
|
|
466
|
+
"snippet": "services:\n immich-redis:\n image: redis:6.2-alpine\n healthcheck:\n test: redis-cli ping || exit 1\n depends_on: null"
|
|
467
|
+
}
|
|
468
|
+
]
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"id": "compose/named-volume",
|
|
472
|
+
"title": "命名卷持久化",
|
|
473
|
+
"category": "compose",
|
|
474
|
+
"intent": "保留上游的命名卷语义,数据交给 Docker 管理。",
|
|
475
|
+
"when_to_use": "上游 compose 用的就是命名卷时。",
|
|
476
|
+
"notes": [
|
|
477
|
+
"用命名卷作为主数据目录时,根 data.yml 的 limit 要设为 1。"
|
|
478
|
+
],
|
|
479
|
+
"apps": 49,
|
|
480
|
+
"versions": 99,
|
|
481
|
+
"examples": [
|
|
482
|
+
{
|
|
483
|
+
"app": "baota",
|
|
484
|
+
"version": "latest",
|
|
485
|
+
"file": "latest/docker-compose.yml",
|
|
486
|
+
"snippet": "services:\n baota:\n image: btpanel/baota:latest\n volumes:\n - baota:/www\nvolumes:\n baota: null"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"app": "aaPanel",
|
|
490
|
+
"version": "latest",
|
|
491
|
+
"file": "latest/docker-compose.yml",
|
|
492
|
+
"snippet": "services:\n aapanel:\n image: aapanel/aapanel:lib\n volumes:\n - aapanel:/www\nvolumes:\n aapanel: null"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"app": "sub2api",
|
|
496
|
+
"version": "latest",
|
|
497
|
+
"file": "latest/docker-compose.yml",
|
|
498
|
+
"snippet": "services:\n redis:\n image: redis:7-alpine\n volumes:\n - redis_data:/data\nvolumes:\n redis_data: null"
|
|
499
|
+
}
|
|
500
|
+
]
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"id": "compose/data-dir-mount",
|
|
504
|
+
"title": "相对路径数据目录挂载",
|
|
505
|
+
"category": "compose",
|
|
506
|
+
"intent": "把持久化数据放在应用目录下,跟随 1Panel 的应用生命周期。",
|
|
507
|
+
"when_to_use": "上游用 host path 或没有明确持久化方案时。",
|
|
508
|
+
"notes": [],
|
|
509
|
+
"apps": 692,
|
|
510
|
+
"versions": 1537,
|
|
511
|
+
"examples": [
|
|
512
|
+
{
|
|
513
|
+
"app": "nps",
|
|
514
|
+
"version": "latest",
|
|
515
|
+
"file": "latest/docker-compose.yml",
|
|
516
|
+
"snippet": "services:\n nps:\n volumes:\n - ./conf:/conf"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"app": "nps",
|
|
520
|
+
"version": "0.26.36",
|
|
521
|
+
"file": "0.26.36/docker-compose.yml",
|
|
522
|
+
"snippet": "services:\n nps:\n volumes:\n - ./conf:/conf"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"app": "nps",
|
|
526
|
+
"version": "bridge-latest",
|
|
527
|
+
"file": "bridge-latest/docker-compose.yml",
|
|
528
|
+
"snippet": "services:\n nps:\n volumes:\n - ./conf:/conf"
|
|
529
|
+
}
|
|
530
|
+
]
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"id": "compose/external-network",
|
|
534
|
+
"title": "接入 1panel-network",
|
|
535
|
+
"category": "compose",
|
|
536
|
+
"intent": "让应用能被面板的反向代理和入口访问到。",
|
|
537
|
+
"when_to_use": "所有 bridge 型、需要被外部访问的应用。",
|
|
538
|
+
"notes": [
|
|
539
|
+
"硬要求是「接了至少一个外部网络」,网络名不一定是 1panel-network。"
|
|
540
|
+
],
|
|
541
|
+
"apps": 815,
|
|
542
|
+
"versions": 1545,
|
|
543
|
+
"examples": [
|
|
544
|
+
{
|
|
545
|
+
"app": "beszel-agent",
|
|
546
|
+
"version": "latest",
|
|
547
|
+
"file": "latest/docker-compose.yml",
|
|
548
|
+
"snippet": "services: {}\nnetworks:\n 1panel-network:\n external: true"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"app": "beszel-agent",
|
|
552
|
+
"version": "0.18.7",
|
|
553
|
+
"file": "0.18.7/docker-compose.yml",
|
|
554
|
+
"snippet": "services: {}\nnetworks:\n 1panel-network:\n external: true"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"app": "easytier",
|
|
558
|
+
"version": "2.6.4",
|
|
559
|
+
"file": "2.6.4/docker-compose.yml",
|
|
560
|
+
"snippet": "services: {}\nnetworks:\n 1panel-network:\n external: true"
|
|
561
|
+
}
|
|
562
|
+
]
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"id": "scripts/init-sh",
|
|
566
|
+
"title": "init.sh 安装前初始化",
|
|
567
|
+
"category": "scripts",
|
|
568
|
+
"intent": "在容器启动前补齐目录、权限、必需配置文件。",
|
|
569
|
+
"when_to_use": "挂载目录需要非 root 可写,或应用首次启动必须读到某个配置文件时。",
|
|
570
|
+
"notes": [
|
|
571
|
+
"「静态校验通过、容器一起来就退出」最常见的根因就是这类缺失(见 lesson L001)。",
|
|
572
|
+
"不要假设脚本能拿到所有表单值,路径类变量要有安全默认值。"
|
|
573
|
+
],
|
|
574
|
+
"apps": 468,
|
|
575
|
+
"versions": 818,
|
|
576
|
+
"examples": [
|
|
577
|
+
{
|
|
578
|
+
"app": "resin",
|
|
579
|
+
"version": "latest",
|
|
580
|
+
"file": "latest/scripts/init.sh",
|
|
581
|
+
"snippet": "#!/bin/bash\n\nexit 0"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"app": "resin",
|
|
585
|
+
"version": "1.2.0",
|
|
586
|
+
"file": "1.2.0/scripts/init.sh",
|
|
587
|
+
"snippet": "#!/bin/bash\n\nexit 0"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"app": "nodebb",
|
|
591
|
+
"version": "latest",
|
|
592
|
+
"file": "latest/scripts/init.sh",
|
|
593
|
+
"snippet": "#!/bin/bash\n\nchmod 777 data"
|
|
594
|
+
}
|
|
595
|
+
]
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"id": "scripts/upgrade-sh",
|
|
599
|
+
"title": "upgrade.sh 升级迁移",
|
|
600
|
+
"category": "scripts",
|
|
601
|
+
"intent": "升级时补齐新增的环境变量或迁移数据。",
|
|
602
|
+
"when_to_use": "新版本引入了必填变量、改了变量名或数据布局时。",
|
|
603
|
+
"notes": [
|
|
604
|
+
"1Panel 升级会重放安装表单的值,被脚本改写过的密钥要持久化并在升级时恢复。"
|
|
605
|
+
],
|
|
606
|
+
"apps": 451,
|
|
607
|
+
"versions": 796,
|
|
608
|
+
"examples": [
|
|
609
|
+
{
|
|
610
|
+
"app": "resin",
|
|
611
|
+
"version": "latest",
|
|
612
|
+
"file": "latest/scripts/upgrade.sh",
|
|
613
|
+
"snippet": "#!/bin/bash\n\nexit 0"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"app": "resin",
|
|
617
|
+
"version": "1.2.0",
|
|
618
|
+
"file": "1.2.0/scripts/upgrade.sh",
|
|
619
|
+
"snippet": "#!/bin/bash\n\nexit 0"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"app": "libretranslate",
|
|
623
|
+
"version": "latest",
|
|
624
|
+
"file": "latest/scripts/upgrade.sh",
|
|
625
|
+
"snippet": "#!/bin/bash\nset -euo pipefail\n:"
|
|
626
|
+
}
|
|
627
|
+
]
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"id": "scripts/uninstall-sh",
|
|
631
|
+
"title": "uninstall.sh 卸载清理",
|
|
632
|
+
"category": "scripts",
|
|
633
|
+
"intent": "卸载时清理数据卷,避免残留。",
|
|
634
|
+
"when_to_use": "使用命名卷或需要显式回收数据时。",
|
|
635
|
+
"notes": [],
|
|
636
|
+
"apps": 446,
|
|
637
|
+
"versions": 784,
|
|
638
|
+
"examples": [
|
|
639
|
+
{
|
|
640
|
+
"app": "cowrie",
|
|
641
|
+
"version": "latest",
|
|
642
|
+
"file": "latest/scripts/uninstall.sh",
|
|
643
|
+
"snippet": "#!/bin/bash\ndocker-compose down"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"app": "actual-budget",
|
|
647
|
+
"version": "latest",
|
|
648
|
+
"file": "latest/scripts/uninstall.sh",
|
|
649
|
+
"snippet": "#!/usr/bin/env bash\nset -euo pipefail"
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"app": "actual-budget",
|
|
653
|
+
"version": "26.8.0",
|
|
654
|
+
"file": "26.8.0/scripts/uninstall.sh",
|
|
655
|
+
"snippet": "#!/usr/bin/env bash\nset -euo pipefail"
|
|
656
|
+
}
|
|
657
|
+
]
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"id": "readme/store-style",
|
|
661
|
+
"title": "商店风格 README",
|
|
662
|
+
"category": "readme",
|
|
663
|
+
"intent": "用产品介绍 / 主要功能 / 访问说明的结构向用户说明这个应用。",
|
|
664
|
+
"when_to_use": "每个包都要有。",
|
|
665
|
+
"notes": [
|
|
666
|
+
"不要把打包过程、调试信息写进应用 README。"
|
|
667
|
+
],
|
|
668
|
+
"apps": 258,
|
|
669
|
+
"versions": 260,
|
|
670
|
+
"examples": [
|
|
671
|
+
{
|
|
672
|
+
"app": "rsshub",
|
|
673
|
+
"version": "-",
|
|
674
|
+
"file": "README.md",
|
|
675
|
+
"snippet": "## 产品介绍\n\nRSSHub 是一款开源、可自行部署的通用 RSS 内容聚合器。它将“万物皆可 RSS”的理念变为现实,能够从各类网站、社交媒体、新闻平台等数千种数据源中抓取内容并生成标准 RSS 输出。\n\n本应用使用 RSSHub 官方 `chromium-bundled` 镜像,内置浏览器运行环境;同时在编排中内置 Redis 服务用于缓存,无需在 1Panel 中单独安装 Redis。\n\n## 主要功能\n\n- 万物皆可 RSS:支持从大量网站和平台生成 RSS 订阅源\n- 开箱即用的路由库:覆盖新闻、博客、社交媒体、论坛、视频平台等场景\n- 自托管部署:通过 Docker 快速运行,数据和缓存由本地实例掌控\n- 内置 Redis 缓存:提升请求性能并减少对源站的重复访问\n- Chromium bundled:适合需要浏览器环境的路由,无需额外 Browserless 服务\n- 配套生态:可搭配 RSSHub Radar、Folo 等工具使用\n\n## 使用说明\n\n1. 安装后访问 `http://服务器IP:端口`。\n2. RSSHub 路由和参数请参考官方文档:<https://docs.rsshub.app/guide/>。\n3. Redis 已作为应用内部服务随 RSSHub 一起启动,缓存数据保存在应用目录的 `data/redis` 下。\n4. 如需调整高级配置,可在安装后按 RSSHub 官方环境变量说明扩展 compose 配置。"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"app": "fakessh",
|
|
679
|
+
"version": "-",
|
|
680
|
+
"file": "README.md",
|
|
681
|
+
"snippet": "# FakeSSH\n\n## 产品介绍\n\nFakeSSH 是一款轻量级 SSH 蜜罐,用于记录连接尝试和基础交互,不提供真实 Shell,适合快速部署以收集攻击者扫描行为。\n\n## 主要功能\n\n- 轻量级 SSH 蜜罐\n- 记录连接尝试\n- 容器以 root 运行以绑定 22 端口\n- 无需持久化数据\n\n## 访问说明\n\n- 蜜罐端口:`PANEL_APP_PORT_SSH`(默认 2222)\n- 该端口会暴露在主机上,用于接收外部 SSH 扫描和攻击流量\n- 容器内部监听 22 端口\n\n## Introduction\n\nFakeSSH is a lightweight SSH honeypot that logs connection attempts and basic interaction without providing a real shell.\n\n## Features\n\n- Lightweight SSH honeypot\n- Logs connection attempts\n- Container runs as root to bind port 22\n- No persistence required\n\n## 安全提示\n\n- 本应用会故意暴露 SSH 端口以吸引攻击流量,请仅在受控环境中使用。\n- 容器内部以 root 运行,这是绑定 22 端口所必需的。\n- 建议将蜜罐部署在隔离网络或防火墙后,避免影响生产服务。\n\n## 数据持久化\n\n本应用无需持久化数据。\n\n## 升级说明\n\n直接升级即可,无需额外数据迁移。\n\n## 开源地址\n\n- GitHub:https://github.com/fffaraz/fakessh\n- 容器镜像:https://github.com/fffaraz/fakessh/pkgs/container/fakessh"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"app": "reference",
|
|
685
|
+
"version": "-",
|
|
686
|
+
"file": "README.md",
|
|
687
|
+
"snippet": "# Reference\n\n## 产品介绍\n\nReference 是一份为中文开发者整理的技术栈速查清单,基于英文版 Reference 翻译扩展而来,涵盖数据库、前端、后端、API 及各类工具命令。\n\n## 主要功能\n\n- 170+ 工具与技术的快速参考\n- 涵盖数据库、前端、后端、API、命令行等\n- 静态站点,无需数据库\n- 轻量级 busybox httpd 服务\n\n## 访问说明\n\n- 默认通过 PANEL_APP_PORT_HTTP 对外访问\n- 安装后访问地址:http://<服务器IP>:<端口>\n- 容器内部监听 3000 端口\n\n## Introduction\n\nReference is a collection of quick reference cheatsheets for developers, covering databases, front-end, back-end, APIs, and various tools.\n\n## Features\n\n- 170+ quick references for tools and technologies\n- Covers databases, front-end, back-end, APIs, command line, and more\n- Static site with no database required\n- Lightweight busybox httpd service\n\n## 数据持久化\n\n本应用为纯静态站点,无需持久化数据。\n\n## 升级说明\n\n直接升级即可,无需额外数据迁移。\n\n## 开源地址\n\n- GitHub:https://github.com/jaywcjlove/reference\n- Docker 镜像:https://hub.docker.com/r/wcjiang/reference"
|
|
688
|
+
}
|
|
689
|
+
]
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"id": "env-sample/closure",
|
|
693
|
+
"title": ".env.sample 变量闭合",
|
|
694
|
+
"category": "env-sample",
|
|
695
|
+
"intent": "让用户脱离 1Panel 也能直接 docker compose up。",
|
|
696
|
+
"when_to_use": "compose 里出现任何 ${VAR} 时。",
|
|
697
|
+
"notes": [
|
|
698
|
+
".env.sample 只是方便文件,不是 1Panel 安装时的运行时契约。"
|
|
699
|
+
],
|
|
700
|
+
"apps": 765,
|
|
701
|
+
"versions": 1420,
|
|
702
|
+
"examples": [
|
|
703
|
+
{
|
|
704
|
+
"app": "frpc",
|
|
705
|
+
"version": "latest",
|
|
706
|
+
"file": "latest/.env.sample",
|
|
707
|
+
"snippet": "CONTAINER_NAME=\"frpc\""
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"app": "frpc",
|
|
711
|
+
"version": "0.69.1",
|
|
712
|
+
"file": "0.69.1/.env.sample",
|
|
713
|
+
"snippet": "CONTAINER_NAME=\"frpc\""
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"app": "udyk-ce",
|
|
717
|
+
"version": "6.0",
|
|
718
|
+
"file": "6.0/.env.sample",
|
|
719
|
+
"snippet": "PANEL_APP_PORT_HTTP=40320"
|
|
720
|
+
}
|
|
721
|
+
]
|
|
722
|
+
}
|
|
723
|
+
]
|
|
724
|
+
}
|