Skip to content
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

ParadeDB Full Text Search #64

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
20 changes: 13 additions & 7 deletions docker-compose.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ x-app: &default-app
volumes:
- ${BACKUP_DIR:?}:/backups
depends_on:
- postgres
- paradedb
environment:
BACKUP_DIR: ${BACKUP_DIR:?}
DATABASE_URL: "psql://postgres:postgres@postgres.local:5432/postgres"
DATABASE_URL: "postgresql://postgres:postgres@paradedb.local:5432/postgres"
DBBACKUP_STORAGE_LOCATION: "/backups"
DJANGO_ADMIN_EMAIL: ${DJANGO_ADMIN_EMAIL:?}
DJANGO_ADMIN_FULL_NAME: ${DJANGO_ADMIN_FULL_NAME:?}
Expand Down Expand Up @@ -46,11 +46,17 @@ services:
<<: *default-app
hostname: llm_worker.local

postgres:
image: postgres:17
hostname: postgres.local
# postgres:
# image: postgres:17
# hostname: postgres.local
# volumes:
# - postgres_data:/var/lib/postgresql/data

paradedb:
image: paradedb/paradedb:0.13.1
hostname: paradedb.local
volumes:
- postgres_data:/var/lib/postgresql/data
- paradedb_data:/var/lib/postgresql/data

volumes:
postgres_data:
paradedb_data:
14 changes: 8 additions & 6 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
- "${REMOTE_DEBUGGING_PORT:-5678}:5678"
command: >
bash -c "
wait-for-it -s postgres.local:5432 -t 60 &&
wait-for-it -s paradedb.local:5432 -t 60 &&
./manage.py migrate &&
./manage.py create_superuser &&
./manage.py create_example_users &&
Expand All @@ -51,29 +51,31 @@ services:
<<: *default-app
command: >
bash -c "
wait-for-it -s postgres.local:5432 -t 60 &&
wait-for-it -s paradedb.local:5432 -t 60 &&
./manage.py bg_worker -l debug -q default --autoreload
"

llm_worker:
<<: *default-app
command: >
bash -c "
wait-for-it -s postgres.local:5432 -t 60 &&
wait-for-it -s paradedb.local:5432 -t 60 &&
./manage.py bg_worker -l debug -q llm --autoreload
"

postgres:
paradedb:
environment:
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "postgres"
POSTGRES_USER: "postgres"

llamacpp_cpu:
<<: *llamacpp
image: ghcr.io/ggerganov/llama.cpp:server
entrypoint: []
command: >
bash -c "
/llama-server \\
./llama-server \\
--model-url ${LLM_MODEL_URL} \\
--host 0.0.0.0 \\
--port 8080 \\
Expand All @@ -87,7 +89,7 @@ services:
entrypoint: []
command: >
bash -c "
/llama-server \\
./llama-server \\
--model-url ${LLM_MODEL_URL} \\
--host 0.0.0.0 \\
--port 8080 \\
Expand Down
Loading
Loading