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.
dx(platform): add platform_linking_manager to local docker-compose (opt-in) (#13133)
Bently0ff0095dfb6e
diff --git a/autogpt_platform/backend/backend/copilot/bot/README.md b/autogpt_platform/backend/backend/copilot/bot/README.mdindex 8a27d01d73..991324cb74 100644--- a/autogpt_platform/backend/backend/copilot/bot/README.md+++ b/autogpt_platform/backend/backend/copilot/bot/README.md@@ -12,6 +12,24 @@ poetry run copilot-botpoetry run app # starts the bot too if AUTOPILOT_BOT_DISCORD_TOKEN is set```+### Docker (local dev)++The bot's link/unlink flow talks to `platform_linking_manager` over cluster-+internal RPC. The service runs as its own pod in dev/prod but is **opt-in**+locally via the `bot` Docker Compose profile so it doesn't slow regular+`docker compose up`:++```bash+# Start the linking manager alongside your existing stack+docker compose up -d platform_linking_manager++# Or include it via the profile flag (also brings up anything else profile-tagged)+docker compose --profile bot up -d+```++Without it running, `/setup` and other token-issuing flows fail with an+`httpx.ConnectError` from the backend trying to reach a missing host.+## Required environment variablesSee `backend/.env.default` for the full list with documentation. Minimum setup:diff --git a/autogpt_platform/docker-compose.platform.yml b/autogpt_platform/docker-compose.platform.ymlindex c210791522..7da975c17d 100644--- a/autogpt_platform/docker-compose.platform.yml+++ b/autogpt_platform/docker-compose.platform.yml@@ -14,6 +14,7 @@ x-backend-env:DATABASEMANAGER_HOST: database_managerEXECUTIONMANAGER_HOST: executorNOTIFICATIONMANAGER_HOST: notification_server+ PLATFORMLINKINGMANAGER_HOST: platform_linking_managerCLAMAV_SERVICE_HOST: clamavDB_HOST: dbREDIS_HOST: redis-0@@ -416,6 +417,39 @@ services:options:max-size: "10m"max-file: "3"+ platform_linking_manager:+ profiles: ["bot"]+ build:+ context: ../+ dockerfile: autogpt_platform/backend/Dockerfile+ target: server+ command: ["platform-linking-manager"] # points to entry in [tool.poetry.scripts] in pyproject.toml+ develop:+ watch:+ - path: ./+ target: autogpt_platform/backend/+ action: rebuild+ depends_on:+ db:+ condition: service_healthy+ redis-0:+ condition: service_healthy+ migrate:+ condition: service_completed_successfully+ database_manager:+ condition: service_started+ <<: *backend-env-files+ environment:+ <<: *backend-env+ ports:+ - "8009:8009"+ networks:+ - app-network+ logging:+ driver: json-file+ options:+ max-size: "10m"+ max-file: "3"frontend:build:context: ../diff --git a/autogpt_platform/docker-compose.yml b/autogpt_platform/docker-compose.ymlindex 3371d8b9d2..5fb81674b4 100644--- a/autogpt_platform/docker-compose.yml+++ b/autogpt_platform/docker-compose.yml@@ -109,6 +109,13 @@ services:file: ./docker-compose.platform.ymlservice: notification_server+ platform_linking_manager:+ <<: *agpt-services+ profiles: ["bot"]+ extends:+ file: ./docker-compose.platform.yml+ service: platform_linking_manager+clamav:<<: *agpt-servicesimage: clamav/clamav-debian:latest