open-webui/Makefile

34 lines
643 B
Makefile
Raw Permalink Normal View History

ifneq ($(shell which docker-compose 2>/dev/null),)
DOCKER_COMPOSE := docker-compose
else
DOCKER_COMPOSE := docker compose
endif
2024-02-23 05:00:59 +08:00
install:
$(DOCKER_COMPOSE) up -d
2024-02-23 05:00:59 +08:00
remove:
@chmod +x confirm_remove.sh
@./confirm_remove.sh
2024-02-23 05:00:59 +08:00
start:
$(DOCKER_COMPOSE) start
2024-04-01 04:50:17 +08:00
startAndBuild:
$(DOCKER_COMPOSE) up -d --build
2024-02-23 05:00:59 +08:00
stop:
$(DOCKER_COMPOSE) stop
2024-02-23 05:00:59 +08:00
update:
2024-02-23 22:53:47 +08:00
# Calls the LLM update script
chmod +x update_ollama_models.sh
@./update_ollama_models.sh
2024-02-23 05:00:59 +08:00
@git pull
$(DOCKER_COMPOSE) down
2024-02-23 22:53:47 +08:00
# Make sure the ollama-webui container is stopped before rebuilding
@docker stop open-webui || true
$(DOCKER_COMPOSE) up --build -d
$(DOCKER_COMPOSE) start
2024-02-23 05:00:59 +08:00