提交 3f3ae7d0 编写于 作者: H huanqing.shao

kuboard

上级 2d0a3c1c
......@@ -64,7 +64,19 @@
<artifactId>docker-maven-plugin</artifactId>
<version>${docker.plugin.version}</version>
<configuration>
<skipDockerBuild>true</skipDockerBuild>
<imageName>${docker.registry.url}/blade/${project.artifactId}:${project.version}</imageName>
<dockerDirectory>${project.basedir}</dockerDirectory>
<dockerHost>${docker.registry.host}</dockerHost>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
<registryUrl>${docker.registry.url}</registryUrl>
<serverId>${docker.registry.url}</serverId>
<pushImage>true</pushImage>
</configuration>
</plugin>
<plugin>
......
#spring配置
spring:
redis:
##redis 单机环境配置
host: redis
port: 6379
password:
database: 0
ssl: false
##redis 集群环境配置
#cluster:
# nodes: 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003
# commandTimeout: 5000
#项目模块集中配置
blade:
#通用开发生产环境数据库地址(特殊情况可在对应的子工程里配置覆盖)
datasource:
test:
url: jdbc:mysql://saber-db-0.saber-db:3306/blade?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8
username: root
password: root
FROM mysql:5.7.26
ADD my.cnf /etc/mysql/conf.d/my.cnf
COPY blade/blade-saber-mysql.sql /docker-entrypoint-initdb.d/blade-saber-mysql.sql
# COPY blade/blade-sword-mysql.sql /docker-entrypoint-initdb.d/blade-sword-mysql.sql
# COPY seata/seata_order.sql /docker-entrypoint-initdb.d/seata_order.sql
# COPY seata/seata_storage.sql /docker-entrypoint-initdb.d/seata_storage.sql
# COPY seata/seata.sql /docker-entrypoint-initdb.d/seata.sql
EXPOSE 3306
......@@ -17,6 +17,9 @@
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
CREATE SCHEMA IF NOT EXISTS `blade` DEFAULT CHARACTER SET utf8mb4 ;
USE `blade` ;
-- ----------------------------
-- Table structure for blade_client
-- ----------------------------
......
[mysqld]
init_connect='SET collation_connection = utf8_unicode_ci'
init_connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册