This repository has been archived!
Qops-容器管理和监控平台
-
qops-server - back-end
-
qops-web - front-end
$ yum install docker
$ systemctl start docker
docker pull postgres:12.0
docker run -p 5432:5432 --name postgres \
-v "$(pwd)/postgres":/var/lib/postgresql/data \
-e POSTGRES_PASSWORD=123456 -d postgres:12.0
docker pull redis
docker run -p 6379:6379 --name=redis \
-d redis
docker pull zhaoqi99/qops-server:latest
docker run --name=qops-server --net=host --restart=always -d zhaoqi99/qops-server:latest
docker pull zhaoqi99/qops-web:latest
docker run --name=qops-web --net=host --restart=always -d zhaoqi99/qops-web:latest
docker run -p 9090:9090 --name=prometheus \
-v $PWD/prometheus:/etc/prometheus \
-d prom/prometheus
docker run -d -p 3000:3000 --name grafana \
-v $PWD/grafana:/var/lib/grafana \
-v $PWD/grafana/etc:/etc/grafana grafana/grafana
docker run -d --volume=/:/rootfs:ro \
--volume=/var/run:/var/run:ro \
--volume=/sys:/sys:ro \
--volume=/var/lib/docker/:/var/lib/docker:ro \
--volume=/dev/disk/:/dev/disk:ro \
--publish=8080:8080 --detach=true --name=cadvisor \
google/cadvisor:latest
docker exec -it qops-server bash
python manage.py migrate
python manage.py createsuperuser --username aabc --email "[email protected]" # 创建超级用户
python manage.py adduser -u username -p password
- 前端:
http://localhost:80
- 后台Admin:
http://localhost:8000
-
作者:
- Qi Zhao([email protected])