LibreChat Docker & Self-Hosted Deployment

GitHub

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex...

41,968 stars TypeScript TypeScript 1 file ยท ~6,206 tokens #ai#anthropic#artifacts#aws#azure#chatgpt#chatgpt-clone#claude
RAW Compose
1. Pull Image (GHCR) docker pull ghcr.io/ferretdb/postgres-documentdb
2. Docker Run (1-Click Launch) docker run -d --name librechat -p 27020:27020 --restart always ghcr.io/ferretdb/postgres-documentdb:17-0.107.0-ferretdb-2.7.0
3. Podman Run podman run -d --name librechat -p 27020:27020 --restart always ghcr.io/ferretdb/postgres-documentdb:17-0.107.0-ferretdb-2.7.0
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://ghcr.io/ferretdb/postgres-documentdb:17-0.107.0-ferretdb-2.7.0
5. ORAS Pull (OCI Artifact) oras pull ghcr.io/ferretdb/postgres-documentdb:17-0.107.0-ferretdb-2.7.0
6. Compose Deployment docker compose up -d
packages/data-schemas/misc/ferretdb/docker-compose.ferretdb.yml
Download .yml
services:
  ferretdb-postgres:
    image: ghcr.io/ferretdb/postgres-documentdb:17-0.107.0-ferretdb-2.7.0
    restart: on-failure
    environment:
      - POSTGRES_USER=ferretdb
      - POSTGRES_PASSWORD=ferretdb
      - POSTGRES_DB=postgres
    volumes:
      - ferretdb_data:/var/lib/postgresql/data

  ferretdb:
    image: ghcr.io/ferretdb/ferretdb:2.7.0
    restart: on-failure
    ports:
      - "27020:27017"
    environment:
      - FERRETDB_POSTGRESQL_URL=postgres://ferretdb:ferretdb@ferretdb-postgres:5432/postgres

volumes:
  ferretdb_data: