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