Repository navigation
Description
Summary
Add a documented, script-supported "external infrastructure" install mode so self-hosters can run Paca against services they already operate (managed/shared PostgreSQL, a Redis-compatible cache, an S3-compatible store, an existing reverse proxy) instead of the bundled containers.
Problem
deploy/docker-compose.prod.yml + scripts/install.sh assume a greenfield host. They bundle postgres, valkey, minio, a Caddy gateway, and a db-backup sidecar. Anyone already running shared infra has to hand-edit the compose file and Caddyfile, which then makes install.sh / upgrade.sh unusable (they assume the bundled topology and rewrite those files on every run).
Partial escape hatches exist but are incomplete:
--scale postgres=0(+DATABASE_URL) and--scale minio=0(+STORAGE_PROVIDER=s3) work, but there is novalkeyequivalent —REDIS_URLis honored by the services, yet the bundledvalkeycontainer can't be cleanly dropped/tracked.- There is no supported way to remove the bundled
gatewayand route through an existing external proxy. The bundled Caddy also serves plugin static assets (/plugins,/plugins-mcp,/plugins-skills) from named volumes and hosts the internal:8080block thatPACA_GATEWAY_URLpoints at — so removing it silently breaks plugins and agent-runner MCP/skill bundle loading unless you replicate the volume mounts + full route set in your own proxy. upgrade.shrecordsPACA_WEB/PACA_AGENT_RUNNERtopology choices and re-applies them; there's no equivalent for "external postgres/valkey/storage/proxy", so upgrades can re-introduce bundled services.
The Helm chart already decomposes this cleanly (separate postgres / valkey / minio templates that can be disabled); Docker Compose is the gap.
Proposed Direction
--scale valkey=0support withREDIS_URL, at parity with the existing postgres/minio external paths.- A supported "no bundled gateway" mode: either publish
api/web/realtimeon configurable host ports for an external proxy, or ship the canonical external-proxy route set + the three plugin-asset mount points in the repo, kept in sync per release the same waydeploy/helm/paca/files/Caddyfileis. - A clear
PACA_GATEWAY_URLstory when the bundled gateway is absent (MCP/skill bundle serving). install.sh/upgrade.shrecord and re-apply all external-infra choices (env-var flags, same pattern asPACA_WEB/PACA_AGENT_RUNNER).- Optionally a thin
deploy/docker-compose.external.ymloverlay (onlyapi/web/realtime/agent-runner), analogous todocker-compose.dev.yml.
Scope
- Product behavior
- Architecture
- Developer experience
- Documentation
Additional Context
I ran Paca this way against an existing stack (ParadeDB / a Redis-compatible cache / an S3-compatible store / a shared Caddy) by hand-editing the compose file and adding a site block to the existing proxy. It works, but every step was undocumented and won't survive upgrade.sh. Happy to share that config as a starting point or open a docs PR.
Tradeoff: larger support matrix and more config surface. Mitigation: most of this is documentation + one new --scale target + keeping the external-proxy route list in the repo (it already has to exist for Helm).
This is a really exciting project — the "agents and humans as equal teammates on the same board" model is genuinely novel, and making it easy to slot into an existing self-hosted stack would help it land with the homelab / self-hosting crowd. Thanks for building it in the open.
Activity
pullfrog commentedon Sep 8, 2026
pikann commentedon Sep 8, 2026
Thank you so much for your feedback! Please feel free to open a PR whenever you're ready