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

Fix local deployment issues #61

Merged
merged 2 commits into from
Jun 26, 2024
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ EMBEDDING_MODEL=BAAI/bge-small-en-v1.5 # Change this
```

> [!WARNING]
> If your existing and new embedding models have different vector dimensions, you may need to recreate your Qdrant collection. You can delete the collection through the Qdrant Dashboard at [http://localhost:6333/dashboard#/collections](http://localhost:6333/dashboard#/collections). Therefore, it is better to plan ahead which embedding model is most suitable for your workflows.
> If your existing and new embedding models have different vector dimensions, you may need to recreate your Qdrant collection. You can delete the collection through the Qdrant Dashboard at [http://qdrant.localhost/dashboard](http://qdrant.localhost/dashboard). Therefore, it is better to plan ahead which embedding model is most suitable for your workflows.

### Guides

Expand Down
5 changes: 5 additions & 0 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ services:
- traefik.http.middlewares.admin-auth.basicauth.users=${USERNAME?Variable not set}:${HASHED_PASSWORD?Variable not set}
- traefik.http.routers.traefik-dashboard-http.middlewares=admin-auth

frontend:
build:
args:
- VITE_API_URL=http://${DOMAIN?Variable not set}

networks:
traefik-public:
external: false
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ services:
- app-qdrant-data:/qdrant/storage
environment:
- QDRANT__SERVICE__API_KEY=${QDRANT__SERVICE__API_KEY?Variable not set}
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.${STACK_NAME?Variable not set}-qdrant-http.rule=Host(`qdrant.${DOMAIN?Variable not set}`)
- traefik.http.routers.${STACK_NAME?Variable not set}-qdrant-http.entrypoints=http
- traefik.http.routers.${STACK_NAME?Variable not set}-qdrant-http.middlewares=https-redirect
- traefik.http.routers.${STACK_NAME?Variable not set}-qdrant-https.rule=Host(`qdrant.${DOMAIN?Variable not set}`)
- traefik.http.routers.${STACK_NAME?Variable not set}-qdrant-https.entrypoints=https
- traefik.http.routers.${STACK_NAME?Variable not set}-qdrant-https.tls=true
- traefik.http.routers.${STACK_NAME?Variable not set}-qdrant-https.tls.certresolver=le
- traefik.http.services.${STACK_NAME?Variable not set}-qdrant.loadbalancer.server.port=6333

backend:
image: "${DOCKER_IMAGE_BACKEND?Variable not set}:${TAG-latest}"
Expand Down
2 changes: 1 addition & 1 deletion local-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Once the containers are running, you can access various services through the fol
- **Frontend**: [http://localhost/](http://localhost/)
- **Backend API Documentation**: [http://localhost/docs/](http://localhost/docs/)
- **Backend API Base URL**: [http://localhost/api/](http://localhost/api/)
- **Qdrant Dashboard**: [http://localhost:6333/dashboard](http://localhost:6333/dashboard)
- **Qdrant Dashboard**: [http://qdrant.localhost/dashboard](http://qdrant.localhost/dashboard)
- **Adminer**: [http://adminer.localhost/](http://adminer.localhost/)

## Troubleshooting
Expand Down