Skip to content

Commit 6968317

Browse files
author
rock.lee
committed
fix: docker compose up doesn't use the env and setup script will not exit when service start success
1 parent 867c375 commit 6968317

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

setup.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ connect_cloud_api_provider() {
450450
check_and_start_docker
451451

452452
echo -e "\n${NC}Starting Docker Compose...${NC}"
453-
docker compose --env-file "${ENV_FILE}" -f "${COMPOSE_FILE}" build && docker compose -f "${COMPOSE_FILE}" up -d
453+
docker compose --env-file "${ENV_FILE}" -f "${COMPOSE_FILE}" up -d --build
454454
docker_compose_status=$?
455455

456456
echo "Docker Compose Exit Status: $docker_compose_status" # Debug output
@@ -476,16 +476,16 @@ while true; do # Main menu loop
476476
case $main_choice in
477477
1) # Use DocsGPT Public API Endpoint
478478
use_docs_public_api_endpoint
479-
;;
479+
break ;;
480480
2) # Serve Local (with Ollama)
481481
serve_local_ollama
482-
;;
482+
break ;;
483483
3) # Connect Local Inference Engine
484484
connect_local_inference_engine
485-
;;
485+
break ;;
486486
4) # Connect Cloud API Provider
487487
connect_cloud_api_provider
488-
;;
488+
break ;;
489489
*)
490490
echo -e "\n${RED}Invalid choice. Please choose 1-4.${NC}" ; sleep 1 ;;
491491
esac

0 commit comments

Comments
 (0)