File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change
1
+
2
+ ifneq ($(shell which docker-compose 2>/dev/null) ,)
3
+ DOCKER_COMPOSE := docker-compose
4
+ else
5
+ DOCKER_COMPOSE := docker compose
6
+ endif
7
+
1
8
install :
2
- @docker-compose up -d
9
+ $( DOCKER_COMPOSE ) up -d
3
10
4
11
remove :
5
12
@chmod +x confirm_remove.sh
6
13
@./confirm_remove.sh
7
14
8
-
9
15
start :
10
- @docker-compose start
16
+ $( DOCKER_COMPOSE ) start
11
17
startAndBuild :
12
- docker-compose up -d --build
18
+ $( DOCKER_COMPOSE ) up -d --build
13
19
14
20
stop :
15
- @docker-compose stop
21
+ $( DOCKER_COMPOSE ) stop
16
22
17
23
update :
18
24
# Calls the LLM update script
19
25
chmod +x update_ollama_models.sh
20
26
@./update_ollama_models.sh
21
27
@git pull
22
- @docker-compose down
28
+ $( DOCKER_COMPOSE ) down
23
29
# Make sure the ollama-webui container is stopped before rebuilding
24
30
@docker stop open-webui || true
25
- @docker-compose up --build -d
26
- @docker-compose start
31
+ $( DOCKER_COMPOSE ) up --build -d
32
+ $( DOCKER_COMPOSE ) start
27
33
You can’t perform that action at this time.
0 commit comments