Skip to content

Commit

Permalink
chore: README.md and example compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila committed Mar 18, 2024
1 parent 987b137 commit 53ef506
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 14 deletions.
Binary file modified README.md
Binary file not shown.
14 changes: 14 additions & 0 deletions api-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3.8'

services:
rag_api:
build: .
ports:
- "8000:8000"
volumes:
- ./uploads:/app/uploads
env_file:
- .env

volumes:
pgdata2:
30 changes: 30 additions & 0 deletions db-api-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: '3.8'

services:
db:
image: ankane/pgvector:latest
environment:
POSTGRES_DB: mydatabase
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
volumes:
- pgdata2:/var/lib/postgresql/data
ports:
- "5433:5432"

fastapi:
build: .
environment:
- DB_HOST=db
- DB_PORT=5432
ports:
- "8000:8000"
volumes:
- ./uploads:/app/uploads
depends_on:
- db
env_file:
- .env

volumes:
pgdata2:
14 changes: 0 additions & 14 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,5 @@ services:
ports:
- "5433:5432"

fastapi:
build: .
environment:
- DB_HOST=db
- DB_PORT=5432
ports:
- "8000:8000"
volumes:
- ./uploads:/app/uploads
depends_on:
- db
env_file:
- .env

volumes:
pgdata2:

0 comments on commit 53ef506

Please sign in to comment.