We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05658ec commit 41e6328Copy full SHA for 41e6328
metro-ai-suite/smart-nvr/setup.sh
@@ -148,10 +148,16 @@ start_services() {
148
149
print_info "Starting Docker Compose services..."
150
# Run the Docker Compose stack with all services
151
- docker compose -f docker/compose.yaml up -d
152
- sleep 5
153
- print_success "Services are starting up..."
154
- print_info "UI will be available at: ${CYAN}http://${HOST_IP}:7860${NC}"
+ docker compose -f docker/compose.yaml up -d
+ if [ $? -eq 0 ]; then
+ sleep 5
+ print_success "Services are starting up..."
155
+ print_info "UI will be available at: ${CYAN}http://${HOST_IP}:7860${NC}"
156
+ else
157
+ print_error "Docker Compose failed to start services."
158
+ exit 1
159
+ fi
160
+
161
}
162
163
# Function to stop the services
0 commit comments