Skip to content

aishang2015/Snippet.Micro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

开发中🐛🐛

架构图

image

系统组成

网关:YARP

服务注册发现:Consul

配置中心:Consul

服务间调用:Refit

统一认证中心:IdentityServer

定时服务:Hangfire

链路跟踪:SkyWalking

日志:ELK

消息队列:Rabbit

NoSQL:Redis,Mongo

Actor:Orleans

启动调试

// 1.准备环境
// 启动环境需要的镜像
docker-compose -f docker-compose.env.yml -p "snippet-micro-environment"  up -d

// 上一步完成后在本地环境执行以下命令,将服务需要的配置文件写入consul

docker exec -it dev-consul consul kv put Services/IdentityServiceConfigDev @/consul/kv/IdentityServiceConfig.dev.json
docker exec -it dev-consul consul kv put Services/IdentityServiceConfig @/consul/kv/IdentityServiceConfig.json

docker exec -it dev-consul consul kv put Services/RbacServiceConfigDev @/consul/kv/RbacServiceConfig.dev.json
docker exec -it dev-consul consul kv put Services/RbacServiceConfig @/consul/kv/RbacServiceConfig.json

docker exec -it dev-consul consul kv put Services/SchedulerServiceConfigDev @/consul/kv/SchedulerServiceConfig.dev.json
docker exec -it dev-consul consul kv put Services/SchedulerServiceConfig @/consul/kv/SchedulerServiceConfig.json

docker exec -it dev-consul consul kv put Services/OperationServiceConfigDev @/consul/kv/OperationServiceConfig.dev.json
docker exec -it dev-consul consul kv put Services/OperationServiceConfig @/consul/kv/OperationServiceConfig.json

// 2.调试或直接启动
// 可以通过vs调试启动

// 或者使用docker启动
docker-compose -f docker-compose.app.yml -p "snippet-micro-services" up -d

服务地址

Consul						http://本机ip:8500/
Skywalking 		              http://本机ip:9898/
ELK      					http://本机ip:5601/
内部用网关(服务间调用)		http://本机ip:10000/
对外用网关(客户端调用)		http://本机ip:20000/
	认证中心服务地址				/identity/XXXX
	角色管理服务地址				/rbac/XXXX
	调度任务服务地址				/scheduler/XXXX
		任务调度服务面板	   		http://本机ip:10000/scheduler/hangfire

数据库,redis,mongodb以及rabbitmq的地址参照 docker-compose env文件
	

About

A micro service project based on net 6

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published