Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
property-management
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
property-management
Commits
84a6e286
Commit
84a6e286
authored
Mar 09, 2021
by
zhangdaiscott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nacos server本地化采用jar方式启动,简化开发
parent
5b70c1d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
18 deletions
+8
-18
jeecg-boot/jeecg-cloud-module/docker-compose.yml
+6
-16
jeecg-boot/jeecg-cloud-module/jeecg-cloud-nacos/Dockerfile
+2
-2
No files found.
jeecg-boot/jeecg-cloud-module/docker-compose.yml
View file @
84a6e286
...
...
@@ -28,28 +28,18 @@ services:
hostname
:
jeecg-boot-redis
jeecg-boot-nacos
:
restart
:
always
image
:
nacos/nacos-server:1.4.0
container_name
:
jeecg-boot-nacos
hostname
:
jeecg-boot-nacos
restart
:
on-failure
build
:
context
:
./jeecg-cloud-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
container_name
:
jeecg-boot-nacos
hostname
:
jeecg-boot-nacos
jeecg-boot-gateway
:
restart
:
on-failure
build
:
context
:
./jeecg-cloud-gateway
ports
:
...
...
jeecg-boot/jeecg-cloud-module/jeecg-cloud-nacos/Dockerfile
View file @
84a6e286
...
...
@@ -12,4 +12,4 @@ EXPOSE 8848
ADD
./target/jeecg-cloud-nacos-2.4.2.jar ./
CMD
sleep 50;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-nacos-2.4.2.jar
\ No newline at end of file
CMD
sleep 5;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-nacos-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