#!/bin/bash

# 数据库
dbserver(){
	docker-compose up -d postgres-12-pro
}

# 中间件
base(){
	docker-compose up -d nacos web-nginx blade-redis xxl-job-admin minio rocketmq-server rocketmq-broker mqtt
}

# 基础服务
modules(){
	docker-compose up -d blade-visual blade-gateway blade-auth blade-report blade-user blade-desk blade-system blade-log blade-resource blade-system blade-user mes-alert
}

# 核心服务
main(){
	docker-compose up -d mes-admin mes-warehouse mes-product mes-abacus mes-qms mes-docking 
}

# 启动mq控制台
rocketmq-dashboard(){
	docker-compose up -d rocketmq-dashboard
}

# 删除Tag为空的镜像
rmiNoneTag(){
	docker images|grep none|awk '{print $3}'|xargs docker rmi -f
}

