benquike zhichyu commited on
Commit
447446d
·
1 Parent(s): 477a90e

allowing docker container to access service on host (#2895)

Browse files

### What problem does this PR solve?

1. services running (e.g., ollama) running on the host could not be
accessed from docker containers

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

---------

Co-authored-by: Zhichang Yu <[email protected]>

Files changed (1) hide show
  1. docker/docker-compose.yml +2 -0
docker/docker-compose.yml CHANGED
@@ -29,3 +29,5 @@ services:
29
  networks:
30
  - ragflow
31
  restart: always
 
 
 
29
  networks:
30
  - ragflow
31
  restart: always
32
+ extra_hosts:
33
+ - "host.docker.internal:host-gateway"