Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

feat(docker): streamline Supabase to minimal essential services (#10639)

Zamil Majdyb53c373a5968
diff --git a/autogpt_platform/db/docker/docker-compose.yml b/autogpt_platform/db/docker/docker-compose.yml
index a96f66dae9..9774cccb33 100644
--- a/autogpt_platform/db/docker/docker-compose.yml
+++ b/autogpt_platform/db/docker/docker-compose.yml
@@ -117,9 +117,6 @@ services:
timeout: 10s
interval: 5s
retries: 3
- depends_on:
- analytics:
- condition: service_healthy
<<: *supabase-env-files
environment:
<<: *supabase-env
@@ -155,9 +152,6 @@ services:
volumes:
# https://github.com/supabase/supabase/issues/12661
- ./volumes/api/kong.yml:/home/kong/temp.yml:ro
- depends_on:
- analytics:
- condition: service_healthy
<<: *supabase-env-files
environment:
<<: *supabase-env
@@ -197,8 +191,6 @@ services:
db:
# Disable this if you are using an external Postgres database
condition: service_healthy
- analytics:
- condition: service_healthy
<<: *supabase-env-files
environment:
<<: *supabase-env
@@ -270,8 +262,6 @@ services:
db:
# Disable this if you are using an external Postgres database
condition: service_healthy
- analytics:
- condition: service_healthy
<<: *supabase-env-files
environment:
<<: *supabase-env
@@ -297,8 +287,6 @@ services:
db:
# Disable this if you are using an external Postgres database
condition: service_healthy
- analytics:
- condition: service_healthy
healthcheck:
test:
[
@@ -416,8 +404,6 @@ services:
db:
# Disable this if you are using an external Postgres database
condition: service_healthy
- analytics:
- condition: service_healthy
<<: *supabase-env-files
environment:
<<: *supabase-env
@@ -435,9 +421,6 @@ services:
restart: unless-stopped
volumes:
- ./volumes/functions:/home/deno/functions:Z
- depends_on:
- analytics:
- condition: service_healthy
<<: *supabase-env-files
environment:
<<: *supabase-env
@@ -542,9 +525,6 @@ services:
interval: 5s
timeout: 5s
retries: 10
- depends_on:
- vector:
- condition: service_healthy
<<: *supabase-env-files
environment:
<<: *supabase-env
diff --git a/autogpt_platform/docker-compose.yml b/autogpt_platform/docker-compose.yml
index 7f096003e8..1860252f46 100644
--- a/autogpt_platform/docker-compose.yml
+++ b/autogpt_platform/docker-compose.yml
@@ -103,13 +103,7 @@ services:
file: ./docker-compose.platform.yml
service: frontend
- # Supabase services
- studio:
- <<: *supabase-services
- extends:
- file: ./db/docker/docker-compose.yml
- service: studio
-
+ # Supabase services (minimal: auth + db + kong)
kong:
<<: *supabase-services
extends:
@@ -124,61 +118,35 @@ services:
environment:
GOTRUE_MAILER_AUTOCONFIRM: true
- rest:
- <<: *supabase-services
- extends:
- file: ./db/docker/docker-compose.yml
- service: rest
-
- realtime:
- <<: *supabase-services
- extends:
- file: ./db/docker/docker-compose.yml
- service: realtime
-
- storage:
- <<: *supabase-services
- extends:
- file: ./db/docker/docker-compose.yml
- service: storage
-
- imgproxy:
+ db:
<<: *supabase-services
extends:
file: ./db/docker/docker-compose.yml
- service: imgproxy
+ service: db
+ ports:
+ - 5432:5432 # We don't use Supavisor locally, so we expose the db directly.
+ # Studio and its dependencies for local development only
meta:
<<: *supabase-services
+ profiles:
+ - local
extends:
file: ./db/docker/docker-compose.yml
service: meta
- functions:
- <<: *supabase-services
- extends:
- file: ./db/docker/docker-compose.yml
- service: functions
-
- analytics:
- <<: *supabase-services
- extends:
- file: ./db/docker/docker-compose.yml
- service: analytics
-
- db:
- <<: *supabase-services
- extends:
- file: ./db/docker/docker-compose.yml
- service: db
- ports:
- - 5432:5432 # We don't use Supavisor locally, so we expose the db directly.
-
- vector:
+ studio:
<<: *supabase-services
+ profiles:
+ - local
extends:
file: ./db/docker/docker-compose.yml
- service: vector
+ service: studio
+ depends_on:
+ meta:
+ condition: service_healthy
+ # environment:
+ # NEXT_PUBLIC_ENABLE_LOGS: false # Disable analytics/logging features
deps:
<<: *supabase-services
@@ -187,13 +155,10 @@ services:
image: busybox
command: /bin/true
depends_on:
- - studio
- kong
- auth
- - meta
- - analytics
- db
- - vector
+ - studio
- redis
- rabbitmq
- clamav