quickstart
快速开始
架构层5 分钟部署与使用
Docker Compose 一键部署通过引导式配置,快速创建第一个工作项
5 分钟部署与使用
Docker Compose 一键部署通过引导式配置,快速创建第一个工作项
本章节提供快速开始指南,帮助你在 5 分钟内部署 ys-pipeline 并创建第一个工作项。
Docker Compose 配置 - 一键部署
version: '3'
services:
mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ys_pipeline
ports:
- "3306:3306"
backend:
image: ys-pipeline:latest
depends_on:
- mysql
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/ys_pipeline
ports:
- "8080:8080"应用配置 - 数据库连接
spring:
datasource:
url: jdbc:mysql://localhost:3306/ys_pipeline
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
mybatis-plus:
mapper-locations: classpath*:mapper/**/*.xml
configuration:
map-underscore-to-camel-case: true