# Recommended configurations by app type

Starting points for `[resources]` and `[data]` in percher.toml, by app type. These are recommended sizing (your app's per-container cap) — your plan pool is charged on measured usage, not the cap, so pick what fits the app and adjust after deploying based on real usage. 256mb is the platform minimum.

- **Static site / landing page**: memory 256mb, cpu 0.25. runtime "node" or "static", no `[data]`. (Astro static, Vite, 11ty, Hugo.)
- **API service / webhook handler**: memory 256mb, cpu 0.5. Go/Rust fit 256mb; Python 256–512mb. Add `[data] mode = "pocketbase"` for storage. (Express, Fastify, Hono, Flask, FastAPI.)
- **Fullstack SSR web app**: memory 512mb, cpu 0.5 (1gb for heavy image/SSR work). Next.js, Remix, SvelteKit, Nuxt, Astro SSR.
- **Fullstack app with database**: memory 512mb, cpu 0.5, `[data] mode = "pocketbase"`. PocketBase gives SQLite + REST + auth + file storage + realtime; the app receives POCKETBASE_URL / POCKETBASE_PUBLIC_URL and an auto-created superuser; admin UI at pb-<app>.percher.run/_/; the sidecar runs in its own 128mb container.
- **Real-time app (WebSocket/SSE)**: memory 512mb (≈1mb per active connection; 1gb for 500+), cpu 0.5. Works through the Caddy proxy.
- **Background worker / queue processor**: memory 256mb, cpu 0.5. Must still expose an HTTP `/health` endpoint on port 3000 so Percher can verify the container.
- **Python data app / ML inference**: memory 1gb, cpu 1.0. numpy/pandas need ≥512mb. Large LLM/image models exceed Percher's limits (use a dedicated GPU service). Health-check timeout defaults to 30 s; raise it with `[checks.health] timeout` (max 300) for model loads. Set `[web].command`: Python builds refuse an app without it.
- **Go or Rust microservice**: memory 256mb, cpu 0.25. runtime "docker" via a multi-stage Dockerfile.
- **Monorepo / multi-package app**: memory 512mb, cpu 0.5. Built from the project root; the start script must build and start the right package.
- **PHP application (Laravel/Symfony)**: memory 256mb (512mb with queues), cpu 0.5. runtime "docker"; set APP_KEY via env.

Per-framework `percher.toml` and known gotchas: https://percher.app/deploy

Full reference: https://percher.app/docs/recommended-setup
