Articles

Can Netlify host a backend? Node.js yes; Python, PHP and Docker no

Netlify runs TypeScript, JavaScript and Go functions and, in Early Access, a Node.js server. What each allows, and where a Python or PHP backend goes instead.

Updated

Yes for a Node.js backend; no for Python, PHP or Docker. Netlify Functions run TypeScript, JavaScript or Go, and Netlify Server, in Early Access, runs a long-lived Node.js server such as Express, Fastify, Hono or Koa, with WebSockets. Python and PHP are in Netlify’s build image only, to build your site. Nothing runs them when a request comes in, and Netlify’s docs describe no way to deploy a container image. For a Postgres database, there’s Netlify Database on the credit-based plans.

Gregale publishes this page. Netlify’s runtimes, limits and prices come from its own docs and pricing page, checked on December 3, 2026: functions, function configuration, background functions, Netlify Server and its limits, software at build time, Netlify Database, how credits work, pricing and rewrites and proxies. Gregale’s come from its plans page.

What runs on Netlify

BackendOn Netlify?How
A Node.js server (Express, Fastify, Hono, Koa)YesNetlify Server, in Early Access, or one function per endpoint
TypeScript or JavaScript handlersYesNetlify Functions, and Edge Functions on Netlify’s network
GoYesNetlify Functions written in Go
Server code of Next.js, Nuxt, SvelteKit or AstroYesFunctions, through each framework’s adapter
Python: Flask, Django, FastAPINoPython is available at build time only
PHP: Laravel, WordPressNoPHP 7.4 to 8.3 is available at build time only
A Docker imageNoNo container runtime is documented
PostgresYesNetlify Database, on the credit-based plans

Functions or Netlify Server

Netlify FunctionsNetlify Server (Early Access)
LanguagesTypeScript, JavaScript, GoNode.js
Requests at onceOne per instance32, 64 or 128 per instance, by instance size
Time limit60 seconds; 30 seconds scheduled; 15 minutes background30 minutes a request, 2 hours on Pro; 20 seconds to send headers
WebSocketsNoYes
Memory1,024 MB by default, up to 4 GB on credit-based ProSet by instance size
InstancesScale automatically1 on Free and Personal, up to 3 on Pro
When idleRuns only while it handles a requestStops after 5 minutes without requests
Price10 credits per GB-hourFree during Early Access, then reserved GB-hours plus active CPU

Netlify Server has two catches during Early Access. Netlify describes it as for “low-volume production use”, and full-stack frameworks such as Next.js, Astro, Nuxt and SvelteKit don’t run on it yet.

Netlify Database

Netlify Database is managed Postgres built into Netlify, with branches for Deploy Previews and migrations it applies for you. It’s on the credit-based plans only and costs 10 credits per compute unit. Storage is free for now, and Netlify says it will give notice before it starts charging for it.

What the plans include

FreePersonalPro
Price$0$9 a month$20 a month, unlimited members
Credits300 a month, a hard limit1,000 a month; 500 more cost $5From 3,000 a month; 1,500 more cost $10

Compute, which covers functions and the database, costs 10 credits per GB-hour, and each production deploy costs 15 credits. So Free’s 300 credits buy at most 30 GB-hours of compute, or 20 production deploys. When the balance runs out, every project is paused and shows “Site not available”. Personal and Pro can buy more credits or turn on auto recharge; Free waits for next month’s credits.

Keep the site on Netlify, run Python or PHP elsewhere

A proxy rewrite lets the site call a backend on another host under its own domain, so the browser makes no cross-origin request. In netlify.toml:

toml
[[redirects]]
  from = "/api/*"
  to = "https://my-api.gregale.app/api/:splat"
  status = 200

Netlify then fetches /api/... from the backend on its CDN servers. A response with ETag or Last-Modified headers can be cached there too.

The backend can run on Gregale, which runs Python, PHP, Go, Node.js or any Docker image in its own microVM: Flask, FastAPI, Django, Laravel and Go each have a guide. The Free plan runs 1 app with 256 MB and 20 GB-RAM-hours a month, and requests can take up to 30 seconds. An app parks after 1 minute idle, holds no memory while parked, and the next request restores it from a snapshot in 50 to 83 ms in our measurements. Free is HTTP only. Hobby, at $10 a month, adds WebSockets, crons and a managed Postgres database, with 5 apps of 512 MB each and 200 GB-RAM-hours.

If your backend is Node.js, try Netlify Server first: one platform and one bill.

What we verified

Netlify’s runtimes, limits and prices come from its docs and pricing page on December 3, 2026. That day Netlify Server was in Early Access and free to use. We didn’t deploy to Netlify for this page. Gregale’s plans and limits are from its plans page on the same date, and its restore times from cold start times by language.

Questions

Can Netlify host a backend?

Yes for Node.js. Netlify Server, in Early Access, runs a long-lived Express, Fastify, Hono or Koa server with WebSockets, and Netlify Functions run TypeScript, JavaScript or Go endpoints. It doesn’t run Python, PHP or Docker images.

Can Netlify run Python?

Not when a request comes in. Python is in Netlify’s build image for building sites, but functions run TypeScript, JavaScript or Go and Netlify Server runs Node.js, so a Flask, Django or FastAPI backend needs another host.

Does Netlify support PHP?

Only during the build. PHP 7.4 to 8.3 is in the build image, but nothing runs PHP when a request comes in, so Laravel or WordPress need another host.

Does Netlify have a database?

Yes. Netlify Database is managed Postgres on the credit-based plans, billed by compute at 10 credits per unit. Storage is free for now.