docker compose scale servicename=3

Category: Self-Hosting

docker compose scale servicename=3

Run multiple instances of a service for load balancing or redundancy

Runs multiple replicas of a service. Requires a load balancer (like Traefik or Nginx) in front to distribute traffic between them.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.