How much RAM does Traefik need?
Cloud-native reverse proxy and load balancer that finds Docker containers and routes to them automatically. Official requirements, sourced, plus our own measurements.
Last updated: 2026-11-22
Pinned version: Traefik 3.7.19 (traefik:v3.7.19@sha256:a6c0194dda77)
Our measurement
18 MB idle RAM · 183 MB disk (images 183 + data 0) · traefik 18 MB (no database)
Official quick start Docker Compose file with the image tag pinned to 3.7.19 by digest (never a floating tag). The dashboard and web entrypoint ports were published on localhost only. No TLS, middlewares or routes yet at idle.
Method: Quick start compose file with the image tag replaced by exact version+digest (never latest). Measured about 10 minutes after start as docker stats MEM USAGE, 3 samples 20 s apart (median). Disk = pulled image size; Traefik keeps no data folder in this setup.
Host: 8 vCPU Intel Xeon VM, 16 GB RAM, Debian 13 (kernel 6.12), Docker 26.1.5 + Compose 2.26.1
Version: Traefik 3.7.19 (traefik:v3.7.19@sha256:a6c0194dda77) · Compose: source · Date: 2026-11-22
With sample data
18 MB idle RAM · 190 MB disk · traefik 37 MB at peak and about 3 minutes after the load; the 10 test backends are not counted
Peak RAM during processing: 37 MB
Sample: Ten traefik/whoami backends, each with its own Host rule set by labels as in the quick start, then 10,000 HTTP requests spread across the ten routes (20 at a time) and 200 dashboard API reads of the router list.
All 10,000 proxied requests and all 200 API reads returned HTTP 200. Peak RAM was 37 MB and it did not drop about 3 minutes after the load. The ten whoami backends used about 7 MB each and are not included in the figures. Disk was about 190 MB (Traefik image 183 + whoami image 7). Real traffic, TLS certificates and middlewares will use more.
Method: Same setup and host as the idle measurement. Peak RAM = docker stats of the traefik container polled back to back (about every 2 seconds) from the first request until 10 s after the last API read. Settled RAM = 3 samples 20 s apart, about 3 minutes after the load.
Version: Traefik 3.7.19 · Date: 2026-11-22
What the official docs say
- The official Docker quick start and installation pages state no minimum or recommended RAM, CPU or disk.
- The quick start Docker Compose file runs a single traefik container, publishes ports 80 and 8080, enables the Docker provider and mounts the Docker socket so it can discover containers.
- The quick start turns on the dashboard with --api.insecure=true on port 8080. The docs say this is for development only and must not be used in production.
- Routes are set with labels on your other containers, so the total RAM you need depends mostly on the apps behind Traefik.
Fits a 4GB server?
yesMeasured 18 MB idle RAM for the official quick start container and 37 MB while it proxied 10,000 requests across 10 routes. Plus 512 MB for the OS that fits 4 GB with lots of room. Size the host for the apps you put behind the proxy, not just Traefik.
Sources
- Traefik docs: Getting Started with Docker checked 2026-11-22
- Traefik docs: Docker provider checked 2026-11-22
- Traefik docs: API and dashboard checked 2026-11-22
- Traefik v3.7.19 release checked 2026-11-22