update docker instructions for remote

This commit is contained in:
timothycarambat
2023-08-22 08:55:59 -07:00
parent 0bbce94be3
commit c47a134cc3
3 changed files with 18 additions and 1 deletions
+16
View File
@@ -31,3 +31,19 @@ Once your organization is connected you will need to put in your Pinecone config
When trying to connect to a Chroma instance running also on the same machine use `http://host.docker.internal:[CHROMA_PORT]` as the URL to connect with.
Once connected you may see a `Sync Chroma Data` button on the organization homepage. This indicates there is existing data in your vector database that can be pulled in. If syncing, the time to sync is dependent on how many documents you have embedded in Chroma. Otherwise, you can just create a workspace and add documents via the UI.
## Common questions and fixes
### API is not working, cannot login?
You are likely running the docker container on a remote machine like EC2 or some other instance where the reachable URL
is not `http://localhost:3001` and instead is something like `http://193.xx.xx.xx:3001` - in this case all you need to do is add the following to your `frontend/.env.production` before running `docker-compose up -d --build`
```
# frontend/.env.production
GENERATE_SOURCEMAP=false
VITE_API_BASE="http://<YOUR_REACHABLE_IP_ADDRESS>:3001/api"
```
For example, if the docker instance is available on `192.186.1.222` your `VITE_API_BASE` would look like `VITE_API_BASE="http://192.186.1.222:3001/api"` in `frontend/.env.production`.
### Still not working?
[Ask for help on Discord](https://discord.gg/6UyHPeGZAC)
+1 -1
View File
@@ -1,2 +1,2 @@
VITE_APP_NAME="VectorAdmin"
# VITE_API_BASE=
# VITE_API_BASE='/api' # Use this URL deploying on non-localhost address.
+1
View File
@@ -23,3 +23,4 @@ dist-ssr
*.sln
*.sw?
legacysrc
.env.production