Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_43934237
jeecg-boot
提交
7cc54084
J
jeecg-boot
项目概览
weixin_43934237
/
jeecg-boot
与 Fork 源项目一致
Fork自
jeecg / jeecg-boot
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jeecg-boot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7cc54084
编写于
3月 03, 2021
作者:
JEECG低代码平台
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docker-compose脚本优化,nacos采用mysql方式自动初始化配置
上级
32297110
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
290 addition
and
11 deletion
+290
-11
jeecg-boot/db/Dockerfile
jeecg-boot/db/Dockerfile
+2
-0
jeecg-boot/db/tables_nacos.sql
jeecg-boot/db/tables_nacos.sql
+262
-0
jeecg-boot/jeecg-cloud-module/docker-compose.yml
jeecg-boot/jeecg-cloud-module/docker-compose.yml
+24
-9
jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/Dockerfile
jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/Dockerfile
+1
-1
jeecg-boot/jeecg-cloud-module/jeecg-cloud-system-start/Dockerfile
...ot/jeecg-cloud-module/jeecg-cloud-system-start/Dockerfile
+1
-1
未找到文件。
jeecg-boot/db/Dockerfile
浏览文件 @
7cc54084
...
...
@@ -6,6 +6,8 @@ ENV TZ=Asia/Shanghai
RUN
ln
-sf
/usr/share/zoneinfo/
$TZ
/etc/localtime
&&
echo
$TZ
>
/etc/timezone
COPY
./tables_nacos.sql /docker-entrypoint-initdb.d
COPY
./jeecgboot-mysql-5.7.sql /docker-entrypoint-initdb.d
COPY
./tables_xxl_job.sql /docker-entrypoint-initdb.d
\ No newline at end of file
jeecg-boot/db/tables_nacos.sql
0 → 100644
浏览文件 @
7cc54084
此差异已折叠。
点击以展开。
jeecg-boot/jeecg-cloud-module/docker-compose.yml
浏览文件 @
7cc54084
...
...
@@ -29,19 +29,34 @@ services:
jeecg-boot-nacos
:
restart
:
always
image
:
nacos/nacos-server
image
:
nacos/nacos-server
:1.4.0
container_name
:
jeecg-boot-nacos
hostname
:
jeecg-boot-nacos
ports
:
-
8848:8848
depends_on
:
-
jeecg-boot-mysql
# volumes:
# - ./init/docker-startup.sh:/home/nacos/bin/docker-startup.sh
# - ./init/application.properties:/home/nacos/conf/application.properties
environment
:
MODE
:
standalone
PREFER_HOST_MODE
:
hostname
SPRING_DATASOURCE_PLATFORM
:
mysql
MYSQL_SERVICE_HOST
:
jeecg-boot-mysql
MYSQL_SERVICE_PORT
:
3306
MYSQL_SERVICE_USER
:
root
MYSQL_SERVICE_PASSWORD
:
root
MYSQL_SERVICE_DB_NAME
:
nacos
jeecg-boot-gateway
:
build
:
context
:
./jeecg-cloud-gateway
ports
:
-
9999:9999
depends_on
:
-
jeecg-boot-nacos
-
jeecg-boot-redis
container_name
:
jeecg-boot-gateway
hostname
:
jeecg-boot-gateway
...
...
@@ -58,6 +73,14 @@ services:
environment
:
-
TZ=Asia/Shanghai
# jeecg-boot-xxljob:
# build:
# context: ./jeecg-cloud-xxljob
# ports:
# - 9080:9080
# container_name: jeecg-boot-xxljob
# hostname: jeecg-boot-xxljob
# jeecg-boot-rabbitmq:
# # image: rabbitmq:3-management
# image: rabbitmq:3
...
...
@@ -67,11 +90,3 @@ services:
# restart: always
# container_name: jeecg-boot-rabbitmq
# hostname: jeecg-boot-rabbitmq
# jeecg-boot-xxljob:
# build:
# context: ./jeecg-cloud-xxljob
# ports:
# - 9080:9080
# container_name: jeecg-boot-xxljob
# hostname: jeecg-boot-xxljob
\ No newline at end of file
jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/Dockerfile
浏览文件 @
7cc54084
...
...
@@ -12,4 +12,4 @@ EXPOSE 9999
ADD
./target/jeecg-cloud-gateway-2.4.2.jar ./
CMD
java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-gateway-2.4.2.jar
\ No newline at end of file
CMD
sleep 10;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-gateway-2.4.2.jar
\ No newline at end of file
jeecg-boot/jeecg-cloud-module/jeecg-cloud-system-start/Dockerfile
浏览文件 @
7cc54084
...
...
@@ -12,4 +12,4 @@ EXPOSE 7001
ADD
./target/jeecg-cloud-system-start-2.4.2.jar ./
CMD
sleep 60;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-system-start-2.4.2.jar
\ No newline at end of file
CMD
sleep 10;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-system-start-2.4.2.jar
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录