Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jeecg-boot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
jeecg-boot
Commits
7cc54084
Commit
7cc54084
authored
Mar 03, 2021
by
zhangdaiscott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker-compose脚本优化,nacos采用mysql方式自动初始化配置
parent
32297110
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
14 deletions
+31
-14
jeecg-boot/db/Dockerfile
+3
-0
jeecg-boot/db/tables_nacos.sql
+0
-0
jeecg-boot/jeecg-cloud-module/docker-compose.yml
+24
-10
jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/Dockerfile
+2
-2
jeecg-boot/jeecg-cloud-module/jeecg-cloud-system-start/Dockerfile
+2
-2
No files found.
jeecg-boot/db/Dockerfile
View file @
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
View file @
7cc54084
This diff is collapsed.
Click to expand it.
jeecg-boot/jeecg-cloud-module/docker-compose.yml
View file @
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
View file @
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
View file @
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment