I found Docker Compose just release 1.28 on 2021-1-20 but as Kubernetes won the container orchestration war I am not sure where and why I may still need Docker Compose, under with case Docker Compose is a better option?
I have a web app that consists of a php docker, a nodejs docker, a nginx docker. We host it at aliyun cloud service. In 2018 aliyun used docker swarm so we used docker compose but in 2020 we had switched k8s so I was wondering if it is still worth to learn docker compose ?
--- update ----
I found these articles were helpful
- Why do I need Compose if I already have Kubernetes? a docker blog published in 2018
- Docker Swarm vs. Kubernetes for Single-Host Implementations
- https://stackoverflow.com/questions/47536536/whats-the-difference-between-docker-compose-and-kubernetes an answer is what I do currently:
If you are networking containers within the same host go for docker compose.
If you are networking containers across multiple hosts go for kubernetes.
And that is what docker compose document said https://docs.docker.com/compose/#common-use-cases