Skip to main content
FINOPS WORKFLOWGRAPH LAB // DIFY 9-CONTAINER STACK TELEMETRY DOCKER COMPOSE OVERRIDE | PGVECTOR HNSW + CELERY | BASELINE 2026-10-13
DifyStackRAM
DifyStackRAM Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
Container & RAM Tuning

Right-Sizing dify-sandbox and Squid ssrf_proxy Containers

Isolate untrusted workflow Python/Node code execution and outbound HTTP tool fetches with strict memory ceilings and timeouts.

280-1,400 MB Sandbox · 140 MB Squid SSRF · Zero Escape

Right-Sizing dify-sandbox and Squid ssrf_proxy Containers
Telemetry baseline verified 2026-10-13 by WorkflowGraph Lab.

Why ssrf_proxy Is Mandatory in Production

Custom HTTP Request nodes in Dify workflows let users query external URLs. Routing those calls through Squid ssrf_proxy on an internal Docker network blocks access to cloud metadata endpoints (169.254.169.254) and private subnets for just ~140 MB of RAM.

Preventing Sandbox Fork Bombs

Always pair deploy.resources.limits.memory on the sandbox service with SANDBOX_WORKER_TIMEOUT=15..30 so runaway loops terminate before exhausting host memory.

Measured Thresholds & Container Limits

ContainerRole in 9-Container StackRecommended Limit
sandboxExecutes Python3 / NodeJS workflow nodes512M (light) / 1,536M (heavy)
ssrf_proxySquid egress filter blocking LAN/metadata IPs256M fixed
nginxTLS/reverse proxy + SSE timeout handling192M fixed
280-1,400 MB Sandbox · 140 MB Squid SSRF · Zero Escape Deploy KVM ($4.79+/mo)Make.com 10k Free Ops