dockerdocker-composedocker-stack

docker-compose.yml vs docker-stack.yml what difference?


I am new docker-user. And in difference manuals I have find usually docker-compose.yml file for description docker job, but on docker site for this goal used docker-stack.yml file. What difference?


Solution

  • docker-compose.yml is for the docker-compose tool which is for multi container docker applications on a single docker engine.

    its called with

    docker-compose up
    

    docker-stack.yml is for the docker swarm tool. (for orchestration and scheduling).

    its called with

    docker stack