提交 1c5da805 作者: 方治民

feat: init

上级 7931c583
......@@ -55,4 +55,4 @@ deploy-job:
REGISTRY_REMOTE_USER: $REGISTRY_REMOTE_USER
REGISTRY_REMOTE_PASSWORD: $REGISTRY_REMOTE_PASSWORD
# 设置镜像 tag,使用 git tag 标识作为镜像 tag
TAG: ${REGISTRY_REMOTE}/basic/basic-api:${CI_BUILD_REF_NAME}
TAG: ${REGISTRY_REMOTE}/kshg/kshg-api:${CI_BUILD_REF_NAME}
# Basic API(Template)
# 可赛化工安全生产平台 API
> 项目 Fork 自 [basic-api-project](https://gitlab.yiring.com/basic/basic-api-project)
## 开发环境
......@@ -22,8 +24,7 @@
## TODO
<!-- prettier-ignore -->
- [x] 完成项目构建,开发文档编写
- [x] [conventional-changelog](https://www.cnblogs.com/mengfangui/p/12634845.html)
- [x] 项目构建
- [x] 用户及权限模块(菜单/按钮)
- [x] 通用文件上传模块
- [ ] 通用字典管理模块
......
spring:
datasource:
url: jdbc:mysql://127.0.0.1:3306/basic_app?useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
url: jdbc:mysql://127.0.0.1:3306/kshg_app?useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
username: root
password: 123456
jpa:
......
......@@ -5,10 +5,13 @@ spring:
password: 123456
jpa:
database-platform: org.hibernate.dialect.H2Dialect
show-sql: true
open-in-view: true
hibernate:
ddl-auto: update
show-sql: true
properties:
hibernate:
format_sql: true
h2:
console:
enabled: true
......@@ -35,3 +38,8 @@ minio:
end-point: "http://127.0.0.1:18100"
bucket: basic
domain: ${minio.endpoint}/${minio.bucket}
logging:
level:
# sql bind parameter
org.hibernate.type.descriptor.sql.BasicBinder: trace
......@@ -5,7 +5,7 @@ server:
spring:
application:
name: "basic-api-app"
name: "kshg-api"
profiles:
include: auth
active: dev
......
......@@ -2,14 +2,14 @@ version: '3'
services:
# 应用服务
basic-api:
kshg-api:
build:
context: .
dockerfile: Dockerfile
# 镜像名称
image: 127.0.0.1:18500/basic/basic-api:0.0.1
image: 127.0.0.1:18500/kshg/kshg-api:0.0.1
# 容器名称
container_name: 'basic-api'
container_name: 'kshg-api'
# 端口绑定
ports:
- "18181:8181"
......@@ -17,14 +17,14 @@ services:
restart: always
# 挂载目录
volumes:
- "/volume/basic/app/data:/data"
- "/volume/basic/app/logs:/logs"
- "/volume/kshg/app/data:/data"
- "/volume/kshg/app/logs:/logs"
environment:
# 设置时区
- TZ=Asia/Shanghai
# 指定网络
networks:
- basic
- kshg
networks:
basic:
kshg:
......@@ -4,7 +4,7 @@ pluginManagement {
gradlePluginPortal()
}
}
rootProject.name = 'basic'
rootProject.name = 'kshg-api'
include 'app'
include 'basic-auth'
include 'basic-common:core'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论