Skip to content

icuxika/driftwood-cloud

Repository files navigation

基于Spring Cloud Alibaba的后端系统

技术栈

需要以docker启动的基础服务

  • 目录:

    /docker

数据库

  • 目录:

    /db

Docker 构建

docker-compose build

模块关系

framework

graph TD; 
    framework-basic-->framework-object-base & framework-config;
    framework-object-base-->framework-object;
    framework-config-->framework-security-->framework-config-jpa;

driftwood-cloud

graph TD;
    framework-config-->framework-security-->framework-config-jpa;
    
    framework-object-->admin-service;
    framework-security-->admin-service;
    
    framework-object-->authorization-server;
    framework-config-->authorization-server;
    
    framework-basic-->gateway;
    
    framework-object-->user-service;
    framework-config-jpa-->user-service;

运行参数

主要用来配置阿里系框架的日志生成位置和是否启用sentinel控制台配置

gateway

  • 添加 VM 选项

-Xms64m -Xmx256m -Dcsp.sentinel.app.type=1 -Dcsp.sentinel.log.dir=logs/gateway/sentinel -DJM.LOG.PATH=logs/gateway -DJM.SNAPSHOT.PATH=logs/gateway

  • 程序实参

--spring.cloud.sentinel.transport.dashboard=""

authorization-server

  • 添加 VM 选项

-Xms64m -Xmx256m -Dcsp.sentinel.log.dir=logs/authorization-server/sentinel -DJM.LOG.PATH=logs/authorization-server -DJM.SNAPSHOT.PATH=logs/authorization-server

  • 程序实参

--spring.cloud.sentinel.transport.dashboard=""

admin-service

  • 添加 VM 选项

-Xms64m -Xmx256m -Dcsp.sentinel.log.dir=logs/admin-service/sentinel -DJM.LOG.PATH=logs/admin-service -DJM.SNAPSHOT.PATH=logs/admin-service

  • 程序实参

--spring.cloud.sentinel.transport.dashboard=""

user-service

  • 添加 VM 选项

-Xms64m -Xmx256m -Dcsp.sentinel.log.dir=logs/user-service/sentinel -DJM.LOG.PATH=logs/user-service -DJM.SNAPSHOT.PATH=logs/user-service

  • 程序实参

--spring.cloud.sentinel.transport.dashboard=""

在命令行中单独运行子项目

mvn -pl authorization-server -am spring-boot:run
mvn -pl gateway -am spring-boot:run
mvn -pl admin-service -am spring-boot:run
mvn -pl user-service -am spring-boot:run

服务端口分配

其他未列举出来的服务可能属于测试服务

服务 端口
gateway 8900
authorization-server 8901
admin-service 8902
user-service 8903
framework-service-websocket 8910
framework-service-job 8911
framework-service-minio 8912
framework-service-flowable 8913

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published