提交 bd9022ba 作者: 方治民

Merge branch 'master' into 'master'

# Conflicts:
#   README.md
...@@ -55,4 +55,4 @@ deploy-job: ...@@ -55,4 +55,4 @@ deploy-job:
REGISTRY_REMOTE_USER: $REGISTRY_REMOTE_USER REGISTRY_REMOTE_USER: $REGISTRY_REMOTE_USER
REGISTRY_REMOTE_PASSWORD: $REGISTRY_REMOTE_PASSWORD REGISTRY_REMOTE_PASSWORD: $REGISTRY_REMOTE_PASSWORD
# 设置镜像 tag,使用 git tag 标识作为镜像 tag # 设置镜像 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)
## 开发环境 ## 开发环境
......
spring: spring:
datasource: 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 username: root
password: 123456 password: 123456
jpa: jpa:
......
...@@ -5,10 +5,13 @@ spring: ...@@ -5,10 +5,13 @@ spring:
password: 123456 password: 123456
jpa: jpa:
database-platform: org.hibernate.dialect.H2Dialect database-platform: org.hibernate.dialect.H2Dialect
show-sql: true
open-in-view: true open-in-view: true
hibernate: hibernate:
ddl-auto: update ddl-auto: update
show-sql: true
properties:
hibernate:
format_sql: true
h2: h2:
console: console:
enabled: true enabled: true
......
...@@ -5,7 +5,7 @@ server: ...@@ -5,7 +5,7 @@ server:
spring: spring:
application: application:
name: "basic-api-app" name: "kshg-api"
profiles: profiles:
include: auth include: auth
active: dev active: dev
......
...@@ -2,14 +2,14 @@ version: '3' ...@@ -2,14 +2,14 @@ version: '3'
services: services:
# 应用服务 # 应用服务
basic-api: kshg-api:
build: build:
context: . context: .
dockerfile: Dockerfile 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: ports:
- "18181:8181" - "18181:8181"
...@@ -17,14 +17,14 @@ services: ...@@ -17,14 +17,14 @@ services:
restart: always restart: always
# 挂载目录 # 挂载目录
volumes: volumes:
- "/volume/basic/app/data:/data" - "/volume/kshg/app/data:/data"
- "/volume/basic/app/logs:/logs" - "/volume/kshg/app/logs:/logs"
environment: environment:
# 设置时区 # 设置时区
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
# 指定网络 # 指定网络
networks: networks:
- basic - kshg
networks: networks:
basic: kshg:
...@@ -4,7 +4,7 @@ pluginManagement { ...@@ -4,7 +4,7 @@ pluginManagement {
gradlePluginPortal() gradlePluginPortal()
} }
} }
rootProject.name = 'basic' rootProject.name = 'kshg-api'
include 'app' include 'app'
include 'basic-auth' include 'basic-auth'
include 'basic-common:core' include 'basic-common:core'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论