{"id":39120558,"url":"https://github.com/quicklyon/spug-docker","last_synced_at":"2026-01-17T20:32:21.334Z","repository":{"id":47095514,"uuid":"514271742","full_name":"quicklyon/spug-docker","owner":"quicklyon","description":"Quickon Docker Image for Spug","archived":false,"fork":false,"pushed_at":"2025-08-12T07:08:05.000Z","size":308,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-12T09:10:19.440Z","etag":null,"topics":["dockerfile"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quicklyon.png","metadata":{"files":{"readme":"README.md","changelog":"changelog/20221031.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-07-15T13:02:37.000Z","updated_at":"2025-08-12T07:07:06.000Z","dependencies_parsed_at":"2025-08-12T09:19:00.400Z","dependency_job_id":null,"html_url":"https://github.com/quicklyon/spug-docker","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/quicklyon/spug-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quicklyon%2Fspug-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quicklyon%2Fspug-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quicklyon%2Fspug-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quicklyon%2Fspug-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quicklyon","download_url":"https://codeload.github.com/quicklyon/spug-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quicklyon%2Fspug-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28517667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T18:55:29.170Z","status":"ssl_error","status_checked_at":"2026-01-17T18:55:03.375Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dockerfile"],"created_at":"2026-01-17T20:32:20.370Z","updated_at":"2026-01-17T20:32:21.311Z","avatar_url":"https://github.com/quicklyon.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- 该文档是模板生成，手动修改的内容会被覆盖，详情参见：https://github.com/quicklyon/template-toolkit --\u003e\n# QuickOn Spug 应用镜像\n\n\n![GitHub Workflow Status (event)](https://img.shields.io/github/actions/workflow/status/quicklyon/spug-docker/docker.yml?style=flat-square)\n![Docker Pulls](https://img.shields.io/docker/pulls/easysoft/spug?style=flat-square)\n![Docker Image Size](https://img.shields.io/docker/image-size/easysoft/spug?style=flat-square)\n![GitHub tag](https://img.shields.io/github/v/tag/quicklyon/spug-docker?style=flat-square)\n\n\u003e 申明: 该软件镜像是由QuickOn打包。在发行中提及的各自商标由各自的公司或个人所有，使用它们并不意味着任何从属关系。\n\n## 快速参考\n\n- 通过 [渠成软件百宝箱](https://www.qucheng.com/app-install/install-spug-125.html) 一键安装 **Spug**\n- [Dockerfile 源码](https://github.com/quicklyon/spug-docker)\n- [Spug 源码](https://github.com/openspug/spug)\n- [Spug 官网](https://spug.cc/)\n\n## 一、关于 Spug\n\n[Spug](https://spug.cc/) 面向中小型企业设计的轻量级无 Agent 的自动化运维平台，整合了主机管理、主机批量执行、主机在线终端、文件在线上传下载、应用发布部署、在线任务计划、配置中心、监控、报警等一系列功能。\n\n![screenshots](https://raw.githubusercontent.com/quicklyon/spug-docker/main/.template/screenshot.png)\n\nSpug官网：[https://spug.cc/](https://spug.cc/)\n\n\n### 1.1 特性\n\n- 批量执行: 主机命令在线批量执行\n- 在线终端: 主机支持浏览器在线终端登录\n- 文件管理: 主机文件在线上传下载\n- 任务计划: 灵活的在线任务计划\n- 发布部署: 支持自定义发布部署流程\n- 配置中心: 支持 KV、文本、json 等格式的配置\n- 监控中心: 支持站点、端口、进程、自定义等监控\n- 报警中心: 支持短信、邮件、钉钉、微信等报警方式\n- 优雅美观: 基于 Ant Design 的 UI 界面\n- 开源免费: 前后端代码完全开源\n\n## 二、支持的版本(Tag)\n\n由于版本比较多,这里只列出最新的5个版本,更详细的版本列表请参考:[可用版本列表](https://hub.docker.com/r/easysoft/spug/tags/)\n\n- [latest](https://github.com/openspug/spug/releases)\n- [3.3.3-20241015](https://github.com/openspug/spug/releases/tag/v3.3.3)\n- [3.3.2-20241008](https://github.com/openspug/spug/releases/tag/v3.3.2)\n- [3.2.7-20230821](https://github.com/openspug/spug/releases/tag/v3.2.7)\n- [3.2.4-20220801](https://github.com/openspug/spug/releases/tag/v3.2.4)\n- [3.2.3](https://github.com/openspug/spug/releases/tag/v3.2.3)\n- [3.2.2](https://github.com/openspug/spug/releases/tag/v3.2.2)\n\n## 三、获取镜像\n\n推荐从 [Docker Hub Registry](https://hub.docker.com/r/easysoft/spug) 拉取我们构建好的官方Docker镜像。\n\n```bash\ndocker pull easysoft/spug:latest\n```\n\n如需使用指定的版本，可以拉取一个包含版本标签的镜像，在Docker Hub仓库中查看 [可用版本列表](https://hub.docker.com/r/easysoft/spug/tags/)\n\n```bash\ndocker pull easysoft/spug:[TAG]\n```\n\n## 四、持久化数据\n\n如果你删除容器，所有的数据都将被删除，下次运行镜像时会重新初始化数据。为了避免数据丢失，你应该为容器提供一个挂在卷，这样可以将数据进行持久化存储。\n\n为了数据持久化，你应该挂载持久化目录：\n\n- /data 持久化数据\n\n如果挂载的目录为空，首次启动会自动初始化相关文件\n\n```bash\n$ docker run -it \\\n    -v $PWD/data:/data \\\ndocker pull easysoft/spug:latest\n```\n\n或者修改 docker-compose.yml 文件，添加持久化目录配置\n\n```bash\nservices:\n  Spug:\n  ...\n    volumes:\n      - /path/to/spug-persistence:/data\n  ...\n```\n\n## 五、环境变量\n\n| 变量名           | 默认值        | 说明                             |\n| ---------------- | ------------- | -------------------------------- |\n| EASYSOFT_DEBUG   | false         | 是否打开调试信息，默认关闭       |\n| MYSQL_HOST       | 127.0.0.1     | MySQL 主机地址                   |\n| MYSQL_PORT       | 3306          | MySQL 端口                       |\n| MYSQL_DB         | spug          | spug 数据库名称                 |\n| MYSQL_USER       | root          | MySQL 用户名                      |\n| MYSQL_PASSWORD   | pass4Spug     | MySQL 密码                        |\n| REDIS_HOST       | 127.0.0.1     | Redis 服务地址 |\n| REDIS_PORT       | 6379          | Redis 端口 |\n| DEFAULT_ADMIN_USER| admin        | 默认管理员名称             |\n| DEFAULT_ADMIN_PASSWORD | spug.dev | 默认管理员密码 |\n\n## 六、运行\n\n### 6.1 单机Docker-compose方式运行\n\n```bash\n# 启动服务\nmake run\n\n# 查看服务状态\nmake ps\n\n# 查看服务日志\ndocker-compose logs -f spug\n\n```\n\n**说明:**\n\n- 启动成功后，打开浏览器输入 `http://\u003c你的IP\u003e:8080` 访问管理后台\n- 默认用户名：`admin`，默认密码：`spug.dev`\n- [VERSION](https://github.com/quicklyon/spug-docker/blob/main/VERSION) 文件中详细的定义了Makefile可以操作的版本。\n- [docker-compose.yml](https://github.com/quicklyon/spug-docker/blob/main/docker-compose.yml)。\n\n## 七、版本升级\n\n\u003c!-- 这里是应用的【应用升级】信息，通过命令维护，详情参考：https://github.com/quicklyon/doc-toolkit --\u003e\n容器镜像已为版本升级做了特殊处理，当检测数据（数据库/持久化文件）版本与镜像内运行的程序版本不一致时，会进行数据库结构的检查，并自动进行数据库升级操作。\n\n因此，升级版本只需要更换镜像版本号即可：\n\n\u003e 修改 docker-compose.yml 文件\n\n```diff\n...\n  gitea:\n-    image: hub.zentao.net/app/spug:3.3.3-20241015\n+    image: hub.zentao.net/app/spug:3.2.7-20230821\n    container_name: spug\n...\n```\n\n更新服务\n\n```bash\n# 是用新版本镜像更新服务\ndocker-compose up -d\n\n# 查看服务状态和镜像版本\ndocker-compose ps\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquicklyon%2Fspug-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquicklyon%2Fspug-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquicklyon%2Fspug-docker/lists"}