-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from terwer/v4.x
Build spring-boot
- Loading branch information
Showing
8 changed files
with
89 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# 构建docker-compose项目 | ||
# docker-compose up -V --force-recreate | ||
# docker-compose up -d --force-recreate | ||
version: '3' | ||
services: | ||
mysql: | ||
privileged: true | ||
container_name: jvue-mysql | ||
build: | ||
context: ./ | ||
dockerfile: ./jvue-mysql/Dockerfile | ||
ports: | ||
- "3306:3306" | ||
environment: | ||
# 最好使用此设定时区,其它静像也可以使用,也可以用"TZ=Asia/Shanghai" | ||
- "TZ=CST-8" | ||
- "MYSQL_ROOT_PASSWORD=123456" | ||
- "MYSQL_ROOT_HOST=%" | ||
- "MYSQL_DATABASE=testbugucms" | ||
- "MYSQL_USER=test" | ||
- "MYSQL_PASSWORD=123456" | ||
volumes: | ||
- ./data/mysql/db:/var/db | ||
- ./data/mysql/log:/var/log | ||
- ./jvue-mysql/my.cnf:/etc/my.cnf | ||
- ./jvue-mysql/init:/docker-entrypoint-initdb.d/ | ||
restart: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# 构建镜像 | ||
# docker build . -t jvue-server:4.0.0 --force-rm --no-cache | ||
|
||
#依赖的镜像 | ||
FROM maven:3.6.0-jdk-8 | ||
#镜像创建者的信息 | ||
MAINTAINER terwer "csyouwei@gmail.com" | ||
# 设置编码 | ||
ENV LANG C.UTF-8 | ||
# 设置时区 | ||
# ENV TZ Asia/Shanghai | ||
ENV TZ CST-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
jvue-server/src/main/resources/application-docker.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# ================================================ | ||
# 项目基本配置 | ||
# ================================================ | ||
server.port=8081 | ||
|
||
# ================================================ | ||
# DataSource配置 | ||
# ================================================ | ||
# MyBatis | ||
mybatis.mapper-locations=classpath:mappers/*.xml | ||
# MySQL | ||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver | ||
spring.datasource.url=jdbc:MySQL://39.104.66.135:3306/testbugucms?useUnicode=true&characterEncoding=utf8&useSSL=false | ||
spring.datasource.username=test | ||
spring.datasource.password=ABCdef123456!# | ||
# PageHelper | ||
pagehelper.helperDialect=mysql | ||
#pagehelper.helperDialect=oracle | ||
pagehelper.reasonable=true | ||
pagehelper.supportMethodsArguments=true | ||
pagehelper.params=count=countSql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters