"vscode:/vscode.git/clone" did not exist on "b6feb23bf306144d4765ef9013387d4deaf91647"
Commit e1e66f70 authored by Entaigner's avatar Entaigner
Browse files

Chose between "docker-compose" and "docker compose" in Makefile

parent e0ebd7ae
ifneq ($(shell which docker-compose 2>/dev/null),)
DOCKER_COMPOSE := docker-compose
else
DOCKER_COMPOSE := docker compose
endif
install: install:
@docker-compose up -d $(DOCKER_COMPOSE) up -d
remove: remove:
@chmod +x confirm_remove.sh @chmod +x confirm_remove.sh
@./confirm_remove.sh @./confirm_remove.sh
start: start:
@docker-compose start $(DOCKER_COMPOSE) start
startAndBuild: startAndBuild:
docker-compose up -d --build $(DOCKER_COMPOSE) up -d --build
stop: stop:
@docker-compose stop $(DOCKER_COMPOSE) stop
update: update:
# Calls the LLM update script # Calls the LLM update script
chmod +x update_ollama_models.sh chmod +x update_ollama_models.sh
@./update_ollama_models.sh @./update_ollama_models.sh
@git pull @git pull
@docker-compose down $(DOCKER_COMPOSE) down
# Make sure the ollama-webui container is stopped before rebuilding # Make sure the ollama-webui container is stopped before rebuilding
@docker stop open-webui || true @docker stop open-webui || true
@docker-compose up --build -d $(DOCKER_COMPOSE) up --build -d
@docker-compose start $(DOCKER_COMPOSE) start
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment