Skip to content

Docker

PT | EN

Docker is the simplest way to run Vectora in an isolated environment or on servers that do not have the Go runtime installed.

Official Images

The project maintains two types of Docker images:

  1. vectora:latest: Full version with CLI support and local tools.
  2. vectora-cloud:latest: Lean version optimized for cloud APIs.

Running with Docker Compose

The recommended way to run locally with all dependencies (such as MongoDB) is via Docker Compose.

version: "3.8"
services:
  vectora:
    image: vectora-cloud:latest
    ports:
      - "8080:8080"
    environment:
      - GOOGLE_API_KEY=${GOOGLE_API_KEY}
      - VOYAGE_API_KEY=${VOYAGE_API_KEY}
      - VECTORA_DB_URL=mongodb://mongo:27017/vectora
    depends_on:
      - mongo
  mongo:
    image: mongo:latest
    ports:
      - "27017:27017"

Manual Build

You can build the images locally using the Makefile:

make docker-build

External Linking

Docker & Containers

ConceptResourceLink
Docker ComposeFile Referencedocs.docker.com/compose/compose-file/
Alpine LinuxBase Imagealpinelinux.org
Multi-stage BuildsBest Practicesdocs.docker.com/build/building/multi-stage/