TKey Docs
  • Introduction
  • 认识阶段 (必读)
    • 单点登录系统认知与基础介绍
    • 故意设计点(常见问题)
    • 项目结构与端口占用
    • OAuth2.0 四种模式
    • JAR 方式部署
    • Docker 方式部署
    • Docker Compose 方式部署
  • TKey Server 开发阶段
    • 开发改造引导
  • TKey Management 开发阶段(也是前后端分离的最佳实践示例)
    • 后端开发改造引导
    • 前端开发改造引导
  • TKey Client Java 开发阶段
    • 自己封装的 REST Client
    • Spring Security 支持
  • 测试阶段
    • 单元测试
    • 压力测试
  • 部署阶段
    • 生产注意事项
    • 部署环境搭建
  • 监控阶段
    • Spring Boot Micrometer
    • 其他工具全在 部署环境搭建,请自行查看
  • 线上问题诊断
    • Actuator 在线修改 log 输出级别(Gif 动图)
    • Arthas 诊断 Docker 应用
    • 夜间开放端口,挑选流量远程 Debug
Powered by GitBook
On this page
  • Docker Compose 启动 TKey SSO Server + Redis
  • 测试

Was this helpful?

  1. 认识阶段 (必读)

Docker Compose 方式部署

Docker Compose 启动 TKey SSO Server + Redis

  • git clone 项目

  • 保持在项目根目录,输入:mvn clean install -DskipTests

  • 保持在项目根目录,输入:docker-compose -f ./docker-compose-quickstart.yml up --build -d

测试

  • cURL 测试结果:

curl -X POST \
  http://sso.cdk8s.com:9091/sso/oauth/token \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'cache-control: no-cache' \
  -d 'grant_type=password&client_id=test_client_id_1&client_secret=test_client_secret_1&username=admin&password=123456'
PreviousDocker 方式部署NextTKey Server 开发阶段

Last updated 5 years ago

Was this helpful?