Quantcast
Channel: Weaviate Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 3590

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

$
0
0

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: {}


Viewing all articles
Browse latest Browse all 3590

Trending Articles