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

**URL:** https://forum.weaviate.io/t/weaviate-verba-how-to-change-the-port-no-weaviate-is-running-on/7380
**Category:** General
**Created:** [November 1, 2024, 8:40pm UTC](https://forum.weaviate.io/t/weaviate-verba-how-to-change-the-port-no-weaviate-is-running-on/7380 "2024-11-01T20:40:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jaydcrowe1989](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/jaydcrowe1989/32/2634_2.png) [@jaydcrowe1989](https://forum.weaviate.io/u/jaydcrowe1989)
#### Post date: [November 1, 2024, 8:40pm UTC](https://forum.weaviate.io/t/weaviate-verba-how-to-change-the-port-no-weaviate-is-running-on/7380/1 "2024-11-01T20:40:53Z")

</div>

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

---

<div class="post-metadata">

### Author: ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)
#### Post date: [November 4, 2024, 1:59pm UTC](https://forum.weaviate.io/t/weaviate-verba-how-to-change-the-port-no-weaviate-is-running-on/7380/2 "2024-11-04T13:59:06Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![jaydcrowe1989](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/jaydcrowe1989/32/2634_2.png) [@jaydcrowe1989](https://forum.weaviate.io/u/jaydcrowe1989)
#### Post date: [November 4, 2024, 4:29pm UTC](https://forum.weaviate.io/t/weaviate-verba-how-to-change-the-port-no-weaviate-is-running-on/7380/3 "2024-11-04T16:29:53Z")

</div>

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](http://weaviate:8081)  
- OPENAI\_API\_KEY=$OPENAI\_API\_KEY  
# - COHERE\_API\_KEY=$COHERE\_API\_KEY  
# - OLLAMA\_URL=[http://host.docker.internal:11434](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](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: {}  
…

---

<div class="post-metadata">

### Author: ![jaydcrowe1989](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/jaydcrowe1989/32/2634_2.png) [@jaydcrowe1989](https://forum.weaviate.io/u/jaydcrowe1989)
#### Post date: [November 4, 2024, 4:31pm UTC](https://forum.weaviate.io/t/weaviate-verba-how-to-change-the-port-no-weaviate-is-running-on/7380/4 "2024-11-04T16:31:29Z")

</div>

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
