Docker Compose or k3s for 40-plus React apps on one server?

November 13, 2026 5 answers
Asked by Gavren.26

I need to deploy more than 40 React apps on one server, with a separate runtime environment for each. I want to update them independently and keep memory use and operational complexity down. Occasional downtime is acceptable.

Would Docker Compose be a better fit than k3s here? What should I check when estimating how many apps the server can handle?

Answers

p604~addrmux_3

I'd start with Docker Compose. You already need containers for the separate environments, and Compose avoids adding a Kubernetes control plane on top. You can set memory limits for individual containers and update a service without rebuilding or redeploying every other app.

Use a consistent container setup where the apps have similar needs, then measure actual memory and CPU under representative traffic. Forty containers alone doesn't tell you much about capacity. The server processes, traffic, build artifacts, and any backend work matter more than the count by itself.

Reply to this answer
pocketadjacent

Before choosing an orchestrator, figure out what each React app needs at runtime. Is it just a production build of HTML, JavaScript, and assets, or does each app also run a Node server or API?

For static builds, a small web server in each app's container could satisfy the separate runtime requirement without keeping a development server running. A shared web server serving separate folders could use fewer processes, but that wouldn't meet the isolation constraint as described.

Vessik.3:

Separate build dependencies don't necessarily mean separate Node processes are needed after the builds are finished. The runtime requirements are the key distinction.

Reply to this answer
x8+crcstep_491

k3s is worth considering if the Kubernetes deployment and resource management model is useful to you, even on one host. A template for the common deployment and service configuration could make managing lots of similar apps less repetitive.

It does add components to run and maintain, though. Resource requests and limits don't make that overhead disappear, and a single-node cluster still has a single-server failure point. I'd compare the operational benefits against the extra memory and complexity rather than assume it's lighter than Compose.

Reply to this answer
Vernel.6

Don't pick a container count as the target. Test a representative mix, including a busy period and individual app updates. Watch memory, CPU, and disk use, then leave headroom for spikes and the host itself. Limits can keep one app from consuming everything, but set them from measurements so an app doesn't get killed unnecessarily.

Using a common base image can reduce duplicated image storage. It doesn't mean each app's running processes become free, so measure runtime memory separately.

Reply to this answer
q73!spool_418

One server can be a reasonable cost tradeoff if downtime is acceptable, but all 40 apps go down together when that host needs work or fails. Plan for backups and a way to restore the deployments before worrying too much about which orchestrator has the nicer dashboard.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions