Weaviate Verba - How to change the port no weaviate is running on

Hi,

I have gone through the whole solution and changed the port numbers for which weaviate is running on from 8080 to 8081 but for some reason, verba when it calls the api/connect, it is saying it cannot connect to weaviate instance on port 8081. Looking at the image it looks like it is trying to still run the command for port 8080 but I have updated it in the docker compost file. So I am not sure why it will not connect still.

Any help would be appreciated.

Regards,
Jay

hi @jaydcrowe1989 !!

Can you paste some of the commands or code you have been running?

Are you running using Docker? That would be the best way to change ports.

Let me know if this helps.

Yes I am using docker. I have pasted in the docker compose file below. The only way I can get it to run correctly on another port is to change the deployment to “Local” when the verba instance is started.


services:
verba:
build:
context: ./
dockerfile: Dockerfile
ports:
- 8001:8001
environment:
- WEAVIATE_URL_VERBA=http://weaviate:8081
- OPENAI_API_KEY=$OPENAI_API_KEY
# - COHERE_API_KEY=$COHERE_API_KEY
# - OLLAMA_URL=http://host.docker.internal:11434
# - OLLAMA_MODEL=$OLLAMA_MODEL
# - OLLAMA_EMBED_MODEL=$OLLAMA_EMBED_MODEL
# - UNSTRUCTURED_API_KEY=$UNSTRUCTURED_API_KEY
# - UNSTRUCTURED_API_URL=$UNSTRUCTURED_API_URL
# - GITHUB_TOKEN=$GITHUB_TOKEN

volumes:
  - ./data:/data/
depends_on:
  weaviate:
    condition: service_healthy
healthcheck:
  test: wget --no-verbose --tries=3 --spider http://localhost:8001 || exit 1
  interval: 5s
  timeout: 10s
  retries: 5
  start_period: 10s

weaviate:
command:
- --host
- 0.0.0.0
- --port
- ‘8081’
- --scheme
- http
image: semitechnologies/weaviate:1.25.10
ports:
- 8081:8081
- 3001:8081
volumes:
- weaviate_data:/var/lib/weaviate
restart: on-failure:0
healthcheck:
test: wget --no-verbose --tries=3 --spider http://localhost:8081/v1/.well-known/ready || exit 1
interval: 5s
timeout: 10s
retries: 5
start_period: 10s
environment:
OPENAI_APIKEY: $OPENAI_API_KEY
COHERE_APIKEY: $COHERE_API_KEY
QUERY_DEFAULTS_LIMIT: 25
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: ‘true’
PERSISTENCE_DATA_PATH: ‘/var/lib/weaviate’
ENABLE_MODULES: ‘e’
CLUSTER_HOSTNAME: ‘node1’

volumes:
weaviate_data: {}

The other issue I have it that every time I do an npm run build and then push the new version by running: docker compose --env-file goldenverba/.env up -d --build

It is not maintaining the database data and I have to keep uploading the documents every time. I am not sure if that is down to the fact I have now set it as local instead of docker