From 99da85a39c1016ac0b8229d5f2395a01ef45848c Mon Sep 17 00:00:00 2001 From: wenxu12345 <44203734@qq.com> Date: Wed, 24 Nov 2021 10:10:40 +0800 Subject: [PATCH] sleep 10 15 --- docker-compose.yaml | 2 ++ script/docker_start_all.sh | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 75ffcabea..07b52e51b 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -95,6 +95,8 @@ services: - ./logs:/Open-IM-Server/logs - ./config/config.yaml:/Open-IM-Server/config/config.yaml - ./db/sdk:/Open-IM-Server/db/sdk + - ./script:/Open-IM-Server/script + restart: always depends_on: - kafka diff --git a/script/docker_start_all.sh b/script/docker_start_all.sh index 143accb88..5d0c19b2e 100644 --- a/script/docker_start_all.sh +++ b/script/docker_start_all.sh @@ -12,13 +12,14 @@ need_to_start_server_shell=( timer_start.sh ) +#fixme The 10 second delay to start the project is for the docker-compose one-click to start openIM when the infrastructure dependencies are not started +sleep 10 for i in ${need_to_start_server_shell[*]}; do chmod +x $i ./$i done -#fixme The 15 second delay to start the project is for the docker-compose one-click to start openIM when the infrastructure dependencies are not started sleep 15 #fixme prevents the openIM service exit after execution in the docker container