Compose on Kubernetes allows you to deploy Docker Compose files onto a Kubernetes cluster.
Compose on Kubernetes comes installed on Docker Dekstop and Docker Enterprise. To deploy a stack, you can use the Docker CLI:
$ cat docker-compose.yml
version: '3.3'
services:
db:
build: db
image: dockersamples/k8s-wordsmith-db
words:
build: words
image: dockersamples/k8s-wordsmith-api
deploy:
replicas: 5
web:
build: web
image: dockersamples/k8s-wordsmith-web
ports:
- "33000:80"
$ docker stack deploy --orchestrator=kubernetes -c docker-compose.yml hellostack
See the contributing and debugging guides.