fix(backend/docker): Update run commands to match deployment

- Follow-up to #12124

Changes:
- Update `run` commands for all backend services in `docker-compose.platform.yml` to match the deployment commands used in production
- Add trigger on `docker-compose(.platform)?.yml` changes to the Frontend CI workflow
This commit is contained in:
Reinier van der Leer
2026-02-16 14:23:29 +01:00
parent 39d28b24fc
commit 074be7aea6
2 changed files with 10 additions and 6 deletions

View File

@@ -7,11 +7,15 @@ on:
- ".github/workflows/platform-frontend-ci.yml" - ".github/workflows/platform-frontend-ci.yml"
- "autogpt_platform/frontend/**" - "autogpt_platform/frontend/**"
- "autogpt_platform/backend/Dockerfile" - "autogpt_platform/backend/Dockerfile"
- "autogpt_platform/docker-compose.yml"
- "autogpt_platform/docker-compose.platform.yml"
pull_request: pull_request:
paths: paths:
- ".github/workflows/platform-frontend-ci.yml" - ".github/workflows/platform-frontend-ci.yml"
- "autogpt_platform/frontend/**" - "autogpt_platform/frontend/**"
- "autogpt_platform/backend/Dockerfile" - "autogpt_platform/backend/Dockerfile"
- "autogpt_platform/docker-compose.yml"
- "autogpt_platform/docker-compose.platform.yml"
merge_group: merge_group:
workflow_dispatch: workflow_dispatch:

View File

@@ -94,7 +94,7 @@ services:
context: ../ context: ../
dockerfile: autogpt_platform/backend/Dockerfile dockerfile: autogpt_platform/backend/Dockerfile
target: server target: server
command: ["python", "-m", "backend.rest"] command: ["rest"] # points to entry in [tool.poetry.scripts] in pyproject.toml
develop: develop:
watch: watch:
- path: ./ - path: ./
@@ -127,7 +127,7 @@ services:
context: ../ context: ../
dockerfile: autogpt_platform/backend/Dockerfile dockerfile: autogpt_platform/backend/Dockerfile
target: server target: server
command: ["python", "-m", "backend.exec"] command: ["executor"] # points to entry in [tool.poetry.scripts] in pyproject.toml
develop: develop:
watch: watch:
- path: ./ - path: ./
@@ -162,7 +162,7 @@ services:
context: ../ context: ../
dockerfile: autogpt_platform/backend/Dockerfile dockerfile: autogpt_platform/backend/Dockerfile
target: server target: server
command: ["python", "-m", "backend.ws"] command: ["ws"] # points to entry in [tool.poetry.scripts] in pyproject.toml
develop: develop:
watch: watch:
- path: ./ - path: ./
@@ -195,7 +195,7 @@ services:
context: ../ context: ../
dockerfile: autogpt_platform/backend/Dockerfile dockerfile: autogpt_platform/backend/Dockerfile
target: server target: server
command: ["python", "-m", "backend.db"] command: ["db"] # points to entry in [tool.poetry.scripts] in pyproject.toml
develop: develop:
watch: watch:
- path: ./ - path: ./
@@ -224,7 +224,7 @@ services:
context: ../ context: ../
dockerfile: autogpt_platform/backend/Dockerfile dockerfile: autogpt_platform/backend/Dockerfile
target: server target: server
command: ["python", "-m", "backend.scheduler"] command: ["scheduler"] # points to entry in [tool.poetry.scripts] in pyproject.toml
develop: develop:
watch: watch:
- path: ./ - path: ./
@@ -272,7 +272,7 @@ services:
context: ../ context: ../
dockerfile: autogpt_platform/backend/Dockerfile dockerfile: autogpt_platform/backend/Dockerfile
target: server target: server
command: ["python", "-m", "backend.notification"] command: ["notification"] # points to entry in [tool.poetry.scripts] in pyproject.toml
develop: develop:
watch: watch:
- path: ./ - path: ./