From 212f4c4f7e0e6740e0de7a7eb585e24d08326591 Mon Sep 17 00:00:00 2001 From: AFKler <160677320+AFKler@users.noreply.github.com> Date: Tue, 20 Feb 2024 23:41:00 +0100 Subject: [PATCH] Update docker-compose.yaml allows connecting to the host machine when 172.17.0.1 etc won't work. you can use it to access a local OpenAI server via the config.yaml: OPENAI_API_BASE: "http://host.docker.internal:8080/v1" --- docker-compose.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 926b8515c..e36427003 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -9,6 +9,8 @@ services: - super__postgres networks: - super_network + extra_hosts: + - "host.docker.internal:host-gateway" command: ["/app/wait-for-it.sh", "super__postgres:5432","-t","60","--","/app/entrypoint.sh"] celery: volumes: @@ -62,6 +64,8 @@ services: - "3000:80" networks: - super_network + extra_hosts: + - "host.docker.internal:host-gateway" depends_on: - backend - gui @@ -73,4 +77,4 @@ networks: driver: bridge volumes: superagi_postgres_data: - redis_data: \ No newline at end of file + redis_data: