Merge pull request #270 from danix800/fix-codeblock-format

Fix codeblock format in swarm/swarm_at_scale/deploy-app.md.
This commit is contained in:
John Mulhausen 2016-10-19 10:38:00 -07:00 committed by GitHub
commit 3c5a664534
1 changed files with 203 additions and 203 deletions

View File

@ -222,12 +222,12 @@ allow you to take advantage of the loadbalancer.
frontend node. Requests to `http://results.myenterprise.com` go just to the
single `dbstore` node where the `example-voting-app-result-app` is running.
8. On your local host, edit `/etc/hosts` file add the resolution for both these
3. On your local host, edit `/etc/hosts` file add the resolution for both these
sites.
9. Save and close the `/etc/hosts` file.
4. Save and close the `/etc/hosts` file.
10. Restart the `nginx` container.
5. Restart the `nginx` container.
Manual restart is required because the current Interlock server is not forcing an
Nginx configuration reload.
@ -292,7 +292,7 @@ the containers at once. This extra credit
Becomes this in a Compose file.
```
```bash
worker:
image: docker/example-voting-app-worker
networks:
@ -355,7 +355,7 @@ result file</a>
Creating scale_result-app_1
```
9. Use the `docker ps` command to see the containers on the Swarm cluster.
7. Use the `docker ps` command to see the containers on the Swarm cluster.
```bash
$ docker -H $(docker-machine ip manager):3376 ps
@ -371,7 +371,7 @@ result file</a>
`voting-app` instances running on two frontend servers. How many
do you have now?
10. Scale your application up by adding some `voting-app` instances.
8. Scale your application up by adding some `voting-app` instances.
```bash
$ docker-compose scale voting-app=3
@ -381,21 +381,21 @@ result file</a>
After you scale up, list the containers on the cluster again.
7. Change to the `loadbalancer` node.
9. Change to the `loadbalancer` node.
```bash
$ eval $(docker-machine env loadbalancer)
```
7. Restart the Nginx server.
10. Restart the Nginx server.
```bash
$ docker restart nginx
```
8. Check your work again by visiting the `http://vote.myenterprise.com` and
11. Check your work again by visiting the `http://vote.myenterprise.com` and
`http://results.myenterprise.com` again.
9. You can view the logs on an individual container.
12. You can view the logs on an individual container.
```bash
$ docker logs scale_voting-app_1