mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
## Summary - Replaces the arch-conditional chromium install (ARM64 vs AMD64) with a single approach: always use the distro-packaged `chromium` and set `AGENT_BROWSER_EXECUTABLE_PATH=/usr/bin/chromium` - Removes `agent-browser install` entirely (it downloads Chrome for Testing, which has no ARM64 binary) - Removes the `entrypoint.sh` wrapper script that was setting the env var at runtime - Updates `autogpt_platform/db/docker/docker-compose.yml`: removes `external: true` from the network declarations so the Supabase stack can be brought up standalone (needed for the Docker integration tests in the test plan below — without this, `docker compose up` fails unless the platform stack is already running); also sets `GOTRUE_MAILER_AUTOCONFIRM: true` for local dev convenience (no SMTP setup required on first run — this compose file is not used in production) - Updates `autogpt_platform/docker-compose.platform.yml`: mounts the `workspace` volume so agent-browser results (screenshots, snapshots) are accessible from other services; without this the copilot workspace write fails in Docker ## Verification Tested via Docker build on arm64 (Apple Silicon): ``` === Testing agent-browser with system chromium === ✓ Example Domain https://example.com/ === SUCCESS: agent-browser launched with system chromium === ``` agent-browser navigated to example.com in ~1.5s using system chromium (v146 from Debian trixie). ## Test plan - [x] Docker build test on arm64: `agent-browser open https://example.com` succeeds with system chromium - [x] Verify amd64 Docker build still works (CI)
187 lines
3.7 KiB
YAML
187 lines
3.7 KiB
YAML
networks:
|
|
app-network:
|
|
name: app-network
|
|
shared-network:
|
|
name: shared-network
|
|
|
|
volumes:
|
|
supabase-config:
|
|
clamav-data:
|
|
workspace-data:
|
|
|
|
x-agpt-services:
|
|
&agpt-services
|
|
networks:
|
|
- app-network
|
|
- shared-network
|
|
|
|
x-supabase-services:
|
|
&supabase-services
|
|
networks:
|
|
- app-network
|
|
- shared-network
|
|
|
|
|
|
services:
|
|
# AGPT services
|
|
migrate:
|
|
<<: *agpt-services
|
|
extends:
|
|
file: ./docker-compose.platform.yml
|
|
service: migrate
|
|
|
|
redis:
|
|
<<: *agpt-services
|
|
extends:
|
|
file: ./docker-compose.platform.yml
|
|
service: redis
|
|
|
|
rabbitmq:
|
|
<<: *agpt-services
|
|
extends:
|
|
file: ./docker-compose.platform.yml
|
|
service: rabbitmq
|
|
|
|
rest_server:
|
|
<<: *agpt-services
|
|
extends:
|
|
file: ./docker-compose.platform.yml
|
|
service: rest_server
|
|
|
|
executor:
|
|
<<: *agpt-services
|
|
extends:
|
|
file: ./docker-compose.platform.yml
|
|
service: executor
|
|
|
|
copilot_executor:
|
|
<<: *agpt-services
|
|
extends:
|
|
file: ./docker-compose.platform.yml
|
|
service: copilot_executor
|
|
|
|
websocket_server:
|
|
<<: *agpt-services
|
|
extends:
|
|
file: ./docker-compose.platform.yml
|
|
service: websocket_server
|
|
|
|
database_manager:
|
|
<<: *agpt-services
|
|
extends:
|
|
file: ./docker-compose.platform.yml
|
|
service: database_manager
|
|
|
|
scheduler_server:
|
|
<<: *agpt-services
|
|
extends:
|
|
file: ./docker-compose.platform.yml
|
|
service: scheduler_server
|
|
|
|
notification_server:
|
|
<<: *agpt-services
|
|
extends:
|
|
file: ./docker-compose.platform.yml
|
|
service: notification_server
|
|
|
|
clamav:
|
|
<<: *agpt-services
|
|
image: clamav/clamav-debian:latest
|
|
ports:
|
|
- "3310:3310"
|
|
volumes:
|
|
- clamav-data:/var/lib/clamav
|
|
environment:
|
|
- CLAMAV_NO_FRESHCLAMD=false
|
|
- CLAMD_CONF_StreamMaxLength=50M
|
|
- CLAMD_CONF_MaxFileSize=100M
|
|
- CLAMD_CONF_MaxScanSize=100M
|
|
- CLAMD_CONF_MaxThreads=12
|
|
- CLAMD_CONF_ReadTimeout=300
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "clamdscan --version || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
frontend:
|
|
<<: *agpt-services
|
|
extends:
|
|
file: ./docker-compose.platform.yml
|
|
service: frontend
|
|
|
|
# Supabase services (minimal: auth + db + kong)
|
|
kong:
|
|
<<: *supabase-services
|
|
extends:
|
|
file: ./db/docker/docker-compose.yml
|
|
service: kong
|
|
|
|
auth:
|
|
<<: *supabase-services
|
|
extends:
|
|
file: ./db/docker/docker-compose.yml
|
|
service: auth
|
|
environment:
|
|
GOTRUE_MAILER_AUTOCONFIRM: true
|
|
|
|
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.
|
|
|
|
# Studio and its dependencies for local development only
|
|
meta:
|
|
<<: *supabase-services
|
|
profiles:
|
|
- local
|
|
extends:
|
|
file: ./db/docker/docker-compose.yml
|
|
service: meta
|
|
|
|
studio:
|
|
<<: *supabase-services
|
|
profiles:
|
|
- local
|
|
extends:
|
|
file: ./db/docker/docker-compose.yml
|
|
service: studio
|
|
depends_on:
|
|
meta:
|
|
condition: service_healthy
|
|
# environment:
|
|
# NEXT_PUBLIC_ENABLE_LOGS: false # Disable analytics/logging features
|
|
|
|
deps:
|
|
<<: *supabase-services
|
|
profiles:
|
|
- local
|
|
image: busybox
|
|
command: /bin/true
|
|
depends_on:
|
|
- kong
|
|
- auth
|
|
- db
|
|
- studio
|
|
- redis
|
|
- rabbitmq
|
|
- clamav
|
|
- migrate
|
|
|
|
deps_backend:
|
|
<<: *agpt-services
|
|
profiles:
|
|
- local
|
|
image: busybox
|
|
command: /bin/true
|
|
depends_on:
|
|
- deps
|
|
- rest_server
|
|
- executor
|
|
- copilot_executor
|
|
- websocket_server
|
|
- database_manager
|