分享1panel分享1Panel 添加第三方应用商店
zephyr写在开头
1Panel作为 Linux 服务器运维管理面板,相较于宝塔面板更加轻量高效。
但是内置的应用商店较少,只有162个应用,除了常用到的MySQL
redis
wordpress
Alist
等常用应用外,没有更多内容。

第三方应用
自建第三方应用 (以Nginx
为例)
创建应用模板
1Panel 官方论坛有详细介绍,此处做记录分享
1Panel 本地应用创建技巧及第三方应用库举例 –> 链接直达
一个应用创建例子,即会在当前目录生成一个应用模板文件夹
1
| 1panel app init -k nginx -v 1.27.3
|
创建一个应用初始模板,应用 key 关键词(文件夹名)为: nginx ,版本号为: 1.27.3
Nginx
文件夹目录结构如下,
1 2 3 4 5 6 7
| . ├── 1.27.3 │ ├── data.yml │ └── docker-compose.yml ├── data.yml ├── logo.png └── README.md
|
编辑应用模板
/1.27.3/data.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| additionalProperties: formFields: - default: 80 envKey: PANEL_APP_PORT_HTTP labelEn: HTTP Port labelZh: HTTP 端口 required: true type: number - default: 443 envKey: PANEL_APP_PORT_HTTPS labelEn: HTTPS Port labelZh: HTTPS 端口 required: true type: number
|
/1.27.3/docker-compose.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| version: '3' services: nginx: image: nginx:latest container_name: ${CONTAINER_NAME} ports: - "80:80" # 映射宿主机80端口到Nginx容器的80端口 - "443:443" # 映射宿主机443端口到Nginx容器的443端口 volumes: - ./html:/usr/share/nginx/html # 将宿主机的html文件夹挂载到Nginx容器的默认HTML目录 - ./nginx.conf:/etc/nginx/nginx.conf # 自定义Nginx配置文件 - ./ssl:/etc/nginx/ssl # 挂载SSL证书 networks: - nginx-network restart: always # 容器异常退出后自动重启 labels: createdBy: "Apps"
networks: nginx-network: driver: bridge
|
data.yml
1 2 3 4 5 6 7 8 9 10 11 12 13
| additionalProperties: key: nginx #应用的 key ,仅限英文,用于在 Linux 创建文件夹 name: Nginx #应用名称 tags: - Server #应用标签,可以有多个,请参照下方的标签列表 shortDescZh: Nginx是高性能的HTTP和反向代理服务器,广泛用于负载均衡和静态资源服务。 #应用中文描述,不要超过30个字 shortDescEn: Nginx is a high-performance HTTP and reverse proxy server, commonly used for load balancing and static content delivery. #应用英文描述 type: runtime #应用类型,区别于应用分类,只能有一个,请参照下方的类型列表 crossVersionUpdate: #是否可以跨大版本升级 limit: 1 #应用安装数量限制,0 代表无限制 website: https: github: https: document: https:
|
README文件我直接粘贴GitHub上nginx的readme.md文件。
使用自建应用
将编辑完成的Nginx
文件移动到 /opt/1panel/resource/apps/local
目录下
点击右上角更新应用列表
,即可出现自建的Nginx
应用。

导入第三方应用商店库
第三方应用库介绍
这里推荐第三方应用商店 项目链接 –> GitHub链接直达
这是一些适配1Panel商店2.0版本的docker应用配置。
致力于一键运行各种 Docker 应用。无需复杂配置,享受便利和高效。
第三方应用库安装
注意!!
默认1Panel
安装在/opt/
路径下,如果不是按需修改以下。
使用 git 命令获取应用, 终端运行以下命令。
1 2 3 4 5
| git clone -b localApps https://mirror.ghproxy.com/https://github.com/okxlin/appstore /opt/1panel/resource/apps/local/appstore-localApps
cp -rf /opt/1panel/resource/apps/local/appstore-localApps/apps/* /opt/1panel/resource/apps/local/
rm -rf /opt/1panel/resource/apps/local/appstore-localApps
|
使用压缩包方式获取应用, 终端运行以下命令。
1 2 3 4 5 6 7 8 9
| wget -P /opt/1panel/resource/apps/local https://mirror.ghproxy.com/https://github.com/okxlin/appstore/archive/refs/heads/localApps.zip
unzip -o -d /opt/1panel/resource/apps/local/ /opt/1panel/resource/apps/local/localApps.zip
cp -rf /opt/1panel/resource/apps/local/appstore-localApps/apps/* /opt/1panel/resource/apps/local/
rm -rf /opt/1panel/resource/apps/local/appstore-localApps
rm -rf /opt/1panel/resource/apps/local/localApps.zip
|
使用 git 命令获取应用, 终端运行以下命令。
1 2 3 4 5
| git clone -b localApps https://github.com/okxlin/appstore /opt/1panel/resource/apps/local/appstore-localApps
cp -rf /opt/1panel/resource/apps/local/appstore-localApps/apps/* /opt/1panel/resource/apps/local/
rm -rf /opt/1panel/resource/apps/local/appstore-localApps
|
使用压缩包方式获取应用, 终端运行以下命令。
1 2 3 4 5 6 7 8 9
| wget -P /opt/1panel/resource/apps/local https://github.com/okxlin/appstore/archive/refs/heads/localApps.zip
unzip -o -d /opt/1panel/resource/apps/local/ /opt/1panel/resource/apps/local/localApps.zip
cp -rf /opt/1panel/resource/apps/local/appstore-localApps/apps/* /opt/1panel/resource/apps/local/
rm -rf /opt/1panel/resource/apps/local/appstore-localApps
rm -rf /opt/1panel/resource/apps/local/localApps.zip
|
应用一览
