Deploy the app (Engine)

Deploy the application

In these steps, you’ll use the docker-stack.yml file to deploy the voting application to the swarm you just created.

Copy docker-stack.yml to the manager

The docker-stack.yml file must be located on a manager for the swarm where you want to deploy the application stack.

  1. Get docker-stack.yml either from the lab or by copying it from the example given here.

  2. Copy docker-stack.yml from your host machine onto the manager.

    $ docker-machine scp ~/sandbox/voting-app/docker-stack.yml manager:/home/docker/.
    docker-stack.yml                                                                      100% 1558     1.5KB/s   00:00
    
  3. Log into the man