How do you decide how many processes belong in one container?
BeginnerProductionArchitecture & Design Decisions
Answer
One concern per container: the app, a proxy, a log shipper each in their own container. It gives independent scaling, restarts, logs and updates. Exceptions are tightly coupled helpers handled as sidecars sharing a network namespace. Supervisord-style multi-process containers hide failures from the orchestrator.
More on Architecture & Design Decisions
How would you design a container build-and-deploy pipeline from commit to production?AdvancedWhen should you use Docker Compose, Swarm, ECS, or Kubernetes?IntermediateHow do you design the config strategy for containerized apps (12-factor)?IntermediateHow would you containerize a legacy app that writes to local disk and holds sessions in memory?AdvancedAlpine or Debian-slim for a Python service?IntermediateHow do you structure a reverse proxy in front of containers?Intermediate