8000 Add OLLAMA_HOST environment variable; Pin Supabase version to v1.24.09 by edowson · Pull Request #94 · coleam00/local-ai-packaged · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add OLLAMA_HOST environment variable; Pin Supabase version to v1.24.09 #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ x-n8n: &service-n8n
- N8N_ENCRYPTION_KEY
- N8N_USER_MANAGEMENT_JWT_SECRET
- WEBHOOK_URL=${N8N_HOSTNAME:+https://}${N8N_HOSTNAME:-http://localhost:5678}
- OLLAMA_HOST=ollama:11434

x-ollama: &service-ollama
image: ollama/ollama:latest
Expand All @@ -49,9 +50,11 @@ x-init-ollama: &init-ollama
volumes:
- ollama_storage:/root/.ollama
entrypoint: /bin/sh
environment:
- OLLAMA_HOST=ollama:11434
command:
- "-c"
- "sleep 3; OLLAMA_HOST=ollama:11434 ollama pull qwen2.5:7b-instruct-q4_K_M; OLLAMA_HOST=ollama:11434 ollama pull nomic-embed-text"
- "sleep 3; ollama pull qwen2.5:7b-instruct-q4_K_M; ollama pull nomic-embed-text"

services:
flowise:
Expand Down
4 changes: 2 additions & 2 deletions start_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ def clone_supabase_repo():
os.chdir("supabase")
run_command(["git", "sparse-checkout", "init", "--cone"])
run_command(["git", "sparse-checkout", "set", "docker"])
run_command(["git", "checkout", "master"])
run_command(["git", "checkout", "v1.24.09"])
os.chdir("..")
else:
print("Supabase repository already exists, updating...")
os.chdir("supabase")
run_command(["git", "pull"])
run_command(["git", "pull", "--rebase", "origin", "v1.24.09"])
os.chdir("..")

def prepare_supabase_env():
Expand Down
0