Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ AGENTFLOW_HTTP_PORT=8090
AGENTFLOW_MYSQL_DSN=loopforge:REPLACE_ME@tcp(127.0.0.1:33315)/loopforge
AGENTFLOW_SESSION_SECRET=REPLACE_WITH_64_RANDOM_HEX_CHARACTERS
AGENTFLOW_AUTH_REQUIRED=true
# Compose: maximum concurrent sandbox commands in the platform worker (positive integer).
AGENTFLOW_WORKER_CONCURRENCY=8
LOOPFORGE_DB_PASSWORD=REPLACE_ME
LOOPFORGE_DB_ROOT_PASSWORD=REPLACE_ME
LOOPFORGE_MYSQL_PORT=33315
Expand Down
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ services:
AGENTFLOW_GATE_MCP_BINARY: /app/bin/agentflow-gate-mcp-{os}-{arch}
# Claude Code is not bundled; it is installed from npm here on first use.
AGENTFLOW_RUNTIME_CLI_DIR: ${LOOPFORGE_DATA_DIR}/cli
command: ["-workspaces", "${LOOPFORGE_DATA_DIR}/workspaces"]
command: ["-workspaces", "${LOOPFORGE_DATA_DIR}/workspaces", "-worker-concurrency", "${AGENTFLOW_WORKER_CONCURRENCY:-8}"]
volumes:
- platform-data:/data
# Docker sandboxes bind workspace paths on the host, so the data
Expand Down
2 changes: 2 additions & 0 deletions docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Run it as the installation owner, including an ordinary Linux user. If that user

`compose.yaml` is the published-image stack and never builds: `./start.sh`, `scripts/install.sh` and a plain `docker compose --profile platform up` all pull the GHCR release pinned there (currently `ghcr.io/tencent/loopforge:0.4.0`). The pin matches the checkout's migrations and seeds, so check out a release tag when you install. Set `LOOPFORGE_IMAGE` (for example to an `@sha256:` digest) only to override it; a value saved in `.env` takes precedence over later pin changes.

Set `AGENTFLOW_WORKER_CONCURRENCY` to a positive integer in `.env` to tune the Compose platform worker's concurrent sandbox command limit (default `8`). Recreate the platform container with `docker compose --profile platform up -d platform` after changing it. These slots are shared across projects on that worker; project run admission and each connected execution machine keep their own limits. Native installations can pass `-worker-concurrency N` to the platform binary.

To upgrade, update the checkout first, then refresh the containers:

```bash
Expand Down