- Spring Boot
- Spring Cloud
- Spring Cloud Alibaba
- Spring Authorization Server
- XXL-JOB
- Apache RocketMQ
- Flowable
- 目录:
/docker
- 目录:
/db
docker-compose build
graph TD;
framework-basic-->framework-object-base & framework-config;
framework-object-base-->framework-object;
framework-config-->framework-security-->framework-config-jpa;
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控制台配置
- 添加 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=""
- 添加 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=""
- 添加 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=""
- 添加 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 |