-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
228 lines (135 loc) · 5.48 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
## LocalAI Docker Compose Commands
localai-up: ## Start LocalAI in the background
docker-compose -f ./LocalAI/localai-compose.yaml up -d
.PHONY: localai-up
localai-down: ## Stop the LocalAI
docker-compose -f ./LocalAI/localai-compose.yaml down
.PHONY: localai-down
localai-restart: ## Restart LocalAI container
docker-compose -f ./LocalAI/localai-compose.yaml restart
.PHONY: localai-restart
localai-exec: ## Exec into the LocalAI container
docker exec -it localai /bin/bash
.PHONY: localai-exec
localai-logs: ## Get logs from LocalAI container
docker logs localai
.PHONY: localai-logs
## ComfyUI Docker Compose Commands
comfyui-up: ## Start ComfyUI in the background
docker-compose -f ./ComfyUI/comfyui-compose.yaml up -d
.PHONY: comfyui-up
comfyui-down: ## Stop the ComfyUI stack
docker-compose -f ./ComfyUI/comfyui-compose.yaml down
.PHONY: comfyui-down
comfyui-restart: ## Restart ComfyUI container
docker-compose -f ./ComfyUI/comfyui-compose.yaml restart
.PHONY: comfyui-restart
comfyui-exec: ## Exec into the ComfyUI container
docker exec -it comfyui /bin/bash
.PHONY: comfyui-exec
comfyui-logs: ## Get logs from ComfyUI container
docker logs comfyui
.PHONY: comfyui-logs
## Open-WebUI Docker Compose Commands
openwebui-up: localai-up ## Start Open-WebUI in the background
docker-compose -f ./Open-WebUI/openwebui-compose.yaml up -d
.PHONY: openwebui-up
openwebui-down: ## Stop the Open-WebUI stack
docker-compose -f ./Open-WebUI/openwebui-compose.yaml down
.PHONY: openwebui-down
openwebui-restart: ## Restart Open-WebUI container
docker-compose -f ./Open-WebUI/openwebui-compose.yaml restart
.PHONY: openwebui-restart
openwebui-exec: ## Exec into the Open-WebUI container
docker exec -it openwebui /bin/bash
.PHONY: openwebui-exec
openwebui-logs: ## Get logs from Open-WebUI container
docker logs openwebui
.PHONY: openwebui-logs
## Flowise Docker Compose Commands
flowise-up: localai-up postgres-up ## Start Flowise in the background
docker-compose -f ./Flowise/flowise-compose.yaml up -d
.PHONY: flowise-up
flowise-down: ## Stop the Flowise stack
docker-compose -f ./Flowise/flowise-compose.yaml down
.PHONY: flowise-down
flowise-restart: ## Restart Flowise container
docker-compose -f ./Flowise/flowise-compose.yaml restart
.PHONY: flowise-restart
flowise-exec: ## Exec into the Flowise container
docker exec -it flowise /bin/bash
.PHONY: flowise-exec
flowise-logs: ## Get logs from Flowise container
docker logs flowise
.PHONY: flowise-logs
## Postgres Docker Compose Commands
postgres-up: ## Start Postgres in the background
docker-compose -f ./Postgres/postgres-compose.yaml up -d
.PHONY: postgres-up
postgres-down: ## Stop the Postgres stack
docker-compose -f ./Postgres/postgres-compose.yaml down
.PHONY: postgres-down
postgres-restart: ## Restart Postgres container
docker-compose -f ./Postgres/postgres-compose.yaml restart
.PHONY: postgres-restart
postgres-exec: ## Exec into the Postgres container
docker exec -it postgres /bin/bash
.PHONY: postgres-exec
postgres-logs: ## Get logs from Postgres container
docker logs postgres
.PHONY: postgres-logs
## N8N Docker Compose Commands
n8n-up: localai-up postgres-up ## Start n8n in the background
docker-compose -f ./n8n/n8n-compose.yaml up -d
.PHONY: n8n-up
n8n-down: ## Stop the n8n stack
docker-compose -f ./n8n/n8n-compose.yaml down
.PHONY: n8n-down
n8n-restart: ## Restart n8n container
docker-compose -f ./n8n/n8n-compose.yaml restart
.PHONY: n8n-restart
n8n-exec: ## Exec into the n8n container
docker exec -it n8n /bin/bash
.PHONY: n8n-exec
n8n-logs: ## Get logs from n8n container
docker logs n8n
.PHONY: n8n-logs
## Chroma Docker Compose Commands
chroma-up: localai-up ## Start ChromaDB in the background
docker-compose -f ./ChromaDB/chromadb-compose.yaml up -d
.PHONY: chroma-up
chroma-down: ## Stop the ChromaDB stack
docker-compose -f ./ChromaDB/chromadb-compose.yaml down
.PHONY: chroma-down
chroma-restart: ## Restart ChromaDB container
docker-compose -f ./ChromaDB/chromadb-compose.yaml restart
.PHONY: chroma-restart
chroma-exec: ## Exec into the ChromaDB container
docker exec -it chromadb /bin/bash
.PHONY: chroma-exec
chroma-logs: ## Get logs from ChromaDB container
docker logs chromadb
.PHONY: chroma-logs
## Unstructured API Docker Compose Commands
unstructured-up: localai-up ## Start Unstructured-API in the background
docker-compose -f ./Unstructured-API/unstructuredapi-compose.yaml up -d
.PHONY: unstructured-up
unstructured-down: ## Stop the Unstructured-API stack
docker-compose -f ./Unstructured-API/unstructuredapi-compose.yaml down
.PHONY: unstructured-down
unstructured-restart: ## Restart Unstructured-API container
docker-compose -f ./Unstructured-API/unstructuredapi-compose.yaml restart
.PHONY: unstructured-restart
unstructured-exec: ## Exec into the Unstructured-API container
docker exec -it unstructuredapi /bin/bash
.PHONY: unstructured-exec
unstructured-logs: ## Get logs from Unstructured-API container
docker logs unstructuredapi
.PHONY: unstructured-logs
all-up: localai-up postgres-up chroma-up unstructured-up flowise-up n8n-up openwebui-up comfyui-up ## Turns on all stacks
.PHONY: all-up
all-down: flowise-down n8n-down openwebui-down comfyui-down unstructured-down chroma-down postgres-down localai-down ## Turns off all stacks
.PHONY: all-down
help: ## show this usage
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
.PHONY: help