rubra icon indicating copy to clipboard operation
rubra copied to clipboard

fix: make host.docker.internal reference work on Linux

Open iwilltry42 opened this issue 1 year ago • 0 comments

host.docker.internal is not necessarily present on all systems (e.g. not on my Linux machine - it's there by default in Docker Desktop though), but it is used as a default connection string to Llamafile by LiteLLM, so we can just "hardcode" it in the docker-compose file. host-gateway is a special DNS key that will be replaced with Docker's host gateway IP and written to /etc/hosts inside the container.

Please test this on Mac or Win with Docker Desktop to ensure it doesn't break those.

iwilltry42 avatar Feb 26 '24 15:02 iwilltry42