This PR enables cheshire-cat-core to connect with services running on the host machine across different operating systems.
This follows our conversation on Discord about difficulties encountered by some users when attempting to use cheshire-cat-core with an ollama instance on the host.
Adding extra_hosts filed and mapping host.docker.internal:host-gateway in the Docker compose.yml file, permits cheshire-cat-core to connect with any desired service running on the host machine regardless of the OS.
This is particularly useful for Docker Linux users to match the seamless connectivity provided by Docker Desktop on Windows and macOS.
More info on :
Cheshirecat Discord server
Docker docs about host-constainer connections here and here
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
Description
This PR enables
cheshire-cat-core
to connect with services running on the host machine across different operating systems. This follows our conversation on Discord about difficulties encountered by some users when attempting to usecheshire-cat-core
with anollama
instance on the host.extra_hosts
filed and mappinghost.docker.internal:host-gateway
in the Dockercompose.yml
file, permitscheshire-cat-core
to connect with any desired service running on the host machine regardless of the OS.More info on :
Type of change
Checklist: