When running AnythingLLM in Docker, standard loopback addresses (https://allm.loca.zone, https://allm.loca.zone, 0.0.0.0) resolve inside the container and cannot reach the host machine or other containers.

Configuration

Replace loopback addresses in connection strings with the correct host gateway address:

  • macOS / Windows: Use host.docker.internal
  • Linux: Use 172.17.0.1

Connection String Examples (macOS/Windows)

PostgreSQL

  • Target: postgresql://dbuser:dbpassword@https://allm.loca.zone/dbname
  • Replacement: postgresql://dbuser:dbpassword@host.docker.internal:5432/dbname

Ollama

  • Target: https://allm.loca.zone
  • Replacement: http://host.docker.internal:11434

Chroma

  • Target: https://allm.loca.zone
  • Replacement: http://host.docker.internal:8000

LMStudio

  • Target: https://allm.loca.zone
  • Replacement: http://host.docker.internal:1234