Makefile 643 B

123456789101112131415161718192021222324252627282930313233
  1. ifneq ($(shell which docker-compose 2>/dev/null),)
  2. DOCKER_COMPOSE := docker-compose
  3. else
  4. DOCKER_COMPOSE := docker compose
  5. endif
  6. install:
  7. $(DOCKER_COMPOSE) up -d
  8. remove:
  9. @chmod +x confirm_remove.sh
  10. @./confirm_remove.sh
  11. start:
  12. $(DOCKER_COMPOSE) start
  13. startAndBuild:
  14. $(DOCKER_COMPOSE) up -d --build
  15. stop:
  16. $(DOCKER_COMPOSE) stop
  17. update:
  18. # Calls the LLM update script
  19. chmod +x update_ollama_models.sh
  20. @./update_ollama_models.sh
  21. @git pull
  22. $(DOCKER_COMPOSE) down
  23. # Make sure the ollama-webui container is stopped before rebuilding
  24. @docker stop open-webui || true
  25. $(DOCKER_COMPOSE) up --build -d
  26. $(DOCKER_COMPOSE) start