mirror of https://github.com/jeecgboot/jeecg-boot
nacos server本地化采用jar方式启动,简化开发
parent
5b70c1d8b8
commit
84a6e28677
|
@ -28,28 +28,18 @@ services:
|
||||||
hostname: jeecg-boot-redis
|
hostname: jeecg-boot-redis
|
||||||
|
|
||||||
jeecg-boot-nacos:
|
jeecg-boot-nacos:
|
||||||
restart: always
|
restart: on-failure
|
||||||
image: nacos/nacos-server:1.4.0
|
build:
|
||||||
container_name: jeecg-boot-nacos
|
context: ./jeecg-cloud-nacos
|
||||||
hostname: jeecg-boot-nacos
|
|
||||||
ports:
|
ports:
|
||||||
- 8848:8848
|
- 8848:8848
|
||||||
depends_on:
|
depends_on:
|
||||||
- jeecg-boot-mysql
|
- jeecg-boot-mysql
|
||||||
# volumes:
|
container_name: jeecg-boot-nacos
|
||||||
# - ./init/docker-startup.sh:/home/nacos/bin/docker-startup.sh
|
hostname: jeecg-boot-nacos
|
||||||
# - ./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:
|
jeecg-boot-gateway:
|
||||||
|
restart: on-failure
|
||||||
build:
|
build:
|
||||||
context: ./jeecg-cloud-gateway
|
context: ./jeecg-cloud-gateway
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -12,4 +12,4 @@ EXPOSE 8848
|
||||||
|
|
||||||
ADD ./target/jeecg-cloud-nacos-2.4.2.jar ./
|
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
|
CMD sleep 5;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-nacos-2.4.2.jar
|
Loading…
Reference in New Issue