fix: deploy issue
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
wfc_work_dir=/opt/wfc
|
wfc_work_dir=/opt/wfc
|
||||||
docker_work_dir=${wfc_work_dir}/docker
|
docker_work_dir=${wfc_work_dir}/docker
|
||||||
|
redis_work_dir=${docker_work_dir}/redis
|
||||||
src_service_dir=${wfc_work_dir}/systemd/system
|
src_service_dir=${wfc_work_dir}/systemd/system
|
||||||
dst_service_dir=/etc/systemd/system
|
dst_service_dir=/etc/systemd/system
|
||||||
java_work_dir=${docker_work_dir}/java
|
java_work_dir=${docker_work_dir}/java
|
||||||
@@ -22,6 +23,9 @@ case "$1" in
|
|||||||
# prepare directory
|
# prepare directory
|
||||||
mkdir -p ${docker_work_dir}/mysql/tmp
|
mkdir -p ${docker_work_dir}/mysql/tmp
|
||||||
chown -R root:root ${docker_work_dir}
|
chown -R root:root ${docker_work_dir}
|
||||||
|
if [ ! -d ${redis_work_dir}/data ]; then
|
||||||
|
mkdir -p ${redis_work_dir}/data
|
||||||
|
fi
|
||||||
if [ -d ${docker_work_dir}/mysql/data ]; then
|
if [ -d ${docker_work_dir}/mysql/data ]; then
|
||||||
chown -R 999:999 ${docker_work_dir}/mysql/data
|
chown -R 999:999 ${docker_work_dir}/mysql/data
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ services:
|
|||||||
- GATEWAY_SERVER_PORT=${GATEWAY_SERVER_PORT}
|
- GATEWAY_SERVER_PORT=${GATEWAY_SERVER_PORT}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "curl -f http://${GATEWAY_SERVER_IP}:${GATEWAY_SERVER_PORT}/health || exit 1"]
|
test: ["CMD-SHELL", "curl -f http://${GATEWAY_SERVER_IP}:${GATEWAY_SERVER_PORT}/health || exit 1"]
|
||||||
interval: 30s
|
interval: 60s
|
||||||
timeout: 60s
|
timeout: 60s
|
||||||
retries: 10
|
retries: 10
|
||||||
restart: ${RESTART_OPTION}
|
restart: ${RESTART_OPTION}
|
||||||
@@ -134,7 +134,7 @@ services:
|
|||||||
- AUTH_SERVER_PORT=${AUTH_SERVER_PORT}
|
- AUTH_SERVER_PORT=${AUTH_SERVER_PORT}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "curl -f http://${AUTH_SERVER_IP}:${AUTH_SERVER_PORT}/health || exit 1"]
|
test: ["CMD-SHELL", "curl -f http://${AUTH_SERVER_IP}:${AUTH_SERVER_PORT}/health || exit 1"]
|
||||||
interval: 30s
|
interval: 60s
|
||||||
timeout: 60s
|
timeout: 60s
|
||||||
retries: 10
|
retries: 10
|
||||||
restart: ${RESTART_OPTION}
|
restart: ${RESTART_OPTION}
|
||||||
|
|||||||
@@ -2,4 +2,5 @@
|
|||||||
FROM nacos/nacos-server
|
FROM nacos/nacos-server
|
||||||
|
|
||||||
# 复制conf文件到路径
|
# 复制conf文件到路径
|
||||||
COPY ./conf/application.properties /home/nacos/conf/application.properties
|
# COPY ./conf/application.properties /home/nacos/conf/application.properties
|
||||||
|
COPY ./conf/application.yml /home/nacos/conf/application.yml
|
||||||
Reference in New Issue
Block a user