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

Gregale · Updated 2026-12-03

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.

**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](https://docs.netlify.com/build/functions/overview/),
[function configuration](https://docs.netlify.com/build/functions/configuration/),
[background functions](https://docs.netlify.com/build/functions/background-functions/),
[Netlify Server](https://docs.netlify.com/build/server/) and its
[limits](https://docs.netlify.com/build/server/limits/),
[software at build time](https://docs.netlify.com/build/configure-builds/available-software-at-build-time/),
[Netlify Database](https://docs.netlify.com/build/data-and-storage/netlify-database/),
[how credits work](https://docs.netlify.com/manage/accounts-and-billing/billing/billing-for-credit-based-plans/how-credits-work/),
[pricing](https://www.netlify.com/pricing/) and
[rewrites and proxies](https://docs.netlify.com/manage/routing/redirects/rewrites-proxies/).
Gregale’s come from its [plans page](https://gregale.dev/docs/plans.md)._

## What runs on Netlify

| Backend                                          | On Netlify? | How                                                           |
| ------------------------------------------------ | ----------- | ------------------------------------------------------------- |
| A Node.js server (Express, Fastify, Hono, Koa)   | Yes         | Netlify Server, in Early Access, or one function per endpoint |
| TypeScript or JavaScript handlers                | Yes         | Netlify Functions, and Edge Functions on Netlify’s network    |
| Go                                               | Yes         | Netlify Functions written in Go                               |
| Server code of Next.js, Nuxt, SvelteKit or Astro | Yes         | Functions, through each framework’s adapter                   |
| Python: Flask, Django, FastAPI                   | No          | Python is available at build time only                        |
| PHP: Laravel, WordPress                          | No          | PHP 7.4 to 8.3 is available at build time only                |
| A Docker image                                   | No          | No container runtime is documented                            |
| Postgres                                         | Yes         | Netlify Database, on the credit-based plans                   |

## Functions or Netlify Server

|                  | Netlify Functions                                       | Netlify Server (Early Access)                                    |
| ---------------- | ------------------------------------------------------- | ---------------------------------------------------------------- |
| Languages        | TypeScript, JavaScript, Go                              | Node.js                                                          |
| Requests at once | One per instance                                        | 32, 64 or 128 per instance, by instance size                     |
| Time limit       | 60 seconds; 30 seconds scheduled; 15 minutes background | 30 minutes a request, 2 hours on Pro; 20 seconds to send headers |
| WebSockets       | No                                                      | Yes                                                              |
| Memory           | 1,024 MB by default, up to 4 GB on credit-based Pro     | Set by instance size                                             |
| Instances        | Scale automatically                                     | 1 on Free and Personal, up to 3 on Pro                           |
| When idle        | Runs only while it handles a request                    | Stops after 5 minutes without requests                           |
| Price            | 10 credits per GB-hour                                  | Free 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

|         | Free                      | Personal                        | Pro                                     |
| ------- | ------------------------- | ------------------------------- | --------------------------------------- |
| Price   | $0                        | $9 a month                      | $20 a month, unlimited members          |
| Credits | 300 a month, a hard limit | 1,000 a month; 500 more cost $5 | From 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](https://gregale.dev/docs/deploy-flask.md), [FastAPI](https://gregale.dev/docs/deploy-fastapi.md),
[Django](https://gregale.dev/docs/deploy-django.md), [Laravel](https://gregale.dev/docs/deploy-laravel.md) and
[Go](https://gregale.dev/docs/deploy-go.md) 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](https://gregale.dev/articles/cold-start-times-by-language). 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](https://gregale.dev/articles/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.

Canonical URL: https://gregale.dev/articles/can-netlify-host-a-backend

