同步操作将从 openspug/spug 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Spug is an open source O & M management system developed with Python + Flask + Vue + Element. The system is separated from the front and the back of the system to help small and medium-sized enterprises manage the hosts, tasks, deployment, configuration files, monitoring and alarming
Spug是一款使用Python+Flask+Vue+Element组件开发的开源运维管理系统,系统前后端分离,帮助中小型企业完成主机、任务、发布部署、配置文件、监控、报警等管理。
$ docker pull hub.qbangmang.com/spug
$ docker run -d -p 80:80 hub.qbangmang.com/spug
$ 访问:http://主机ip
$ 默认账号密码:admin/spug
# 可选参数:
$ docker run -d -e REGISTRY_SERVER="hub.qbangmang.com" -p 80:80 hub.qbangmang.com/spug
$ -e MYSQL_HOST = "192.168.1.10" // 指定数据库地址
-e MYSQL_DATABASE="spug" // 指定数据库名称,
-e MYSQL_USER="spuguser" // 指定数据库用户名
-e MYSQL_PASSWORD="spugpwd" // 指定数据库密码
-e MYSQL_PORT="3306" // 指定数据库端口
-e REGISTRY_SERVER="hub.qbangmang.com" // 指定私有镜像仓库
-e REGISTRY_USER="hubuser" // 指定私有镜像仓库用户名
-e REGISTRY_PASSWORD="hubpwd" // 指定私有镜像仓库密码
更多Dockerfile Dockerfile
1. Clone code 克隆代码:
$ git clone https://github.com/openspug/spug.git
2. Start server 启动服务端:
$ cd spug/spug_api
$ pip install -r requirements.txt //安装依赖包
$ mv config.py.example config.py //编辑配置文件
$ python manage.py init_db //初始化数据库
$ python manage.py create_admin //创建管理员
$ python main.py //启动服务
3. Start web 启动前端:
$ cd spug/spug_web
$ npm install
$ npm run dev
4. Visit 访问:
$ http://$HOST:8080 (http://你的主机IP:8080 来访问 Spug)
Spug项目前后端分离,支持前端单独运行,也支持后端单独运行。 如果你想单独基于前端项目开发自己需要的后台功能,那么可以访问前端独立出来的项目:https://github.com/openspug/spug-vue-admin
QQ群号: 783951751
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。