Commit 21447da7 authored by Mark Church's avatar Mark Church
Browse files

fixed links

parent 0d4915ad
......@@ -36,7 +36,7 @@ $ docker run -it -p 5000:5000 docker-pets
## Running Pets on Docker for Mac/Windows in Development
Docker Swarm can easily be set up to run applications on a single developer laptop. The full app can be brought up to run in the same way it would run in production. We use a compose v3 file to deploy a fully fault tolerant frontend and backend, along with the configurations, secrets, and networks required for the application to run.
pets
This is the full architecture that is deployed when using [pets-dev-compose.yml](https://github.com/mark-church/docker-pets/blob/master/pets-dev-compose.yml).
This is the full architecture that is deployed when using [pets-dev-compose.yml](https://github.com/dockersamples/docker-pets/blob/1.0/pets-dev-compose.yml).
```
~$ git clone https://github.com/dockersamples/docker-pets.git
......@@ -51,7 +51,7 @@ fd3ovikiq7tzmdr70zukbsgbs * moby Ready Active Leader
~/docker-pets$ docker stack deploy -c pets-dev-compose.yml pets
```
![](docs/images/pets-dev-arch.png)
![](images/pets-dev-arch.png)
## Pets configuration parameters
......@@ -85,15 +85,15 @@ The `web` container has several configuration parameters as environment variable
## Running Ppetsets on Docker UCP in Production
This [full length tutorial](https://github.com/mark-church/docker-pets/blob/master/DEMO-DDC.md) will show you how to deploy and demo DDC with the pets app.
This [full length tutorial](https://github.com/docker/dcus-hol-2017/tree/master/docker-enterprise) will show you how to deploy and demo DDC with the pets app.
Production apps have entirely different requirements when it comes to security, deployment, and also security. Fortunately, deployment on Swarm & UCP is very much the same from development to production. Some minor additions to our compose file add in capabilities for secrets and also for L7 load balancing.
This is the full architecture that is deployed when using [pets-prod-compose.yml](https://github.com/mark-church/docker-pets/blob/master/pets-prod-compose.yml).
This is the full architecture that is deployed when using [pets-prod-compose.yml](https://github.com/dockersamples/docker-pets/blob/1.0/pets-prod-compose.yml).
```
$ echo "mysecret" | docker secret create admin_password_v1 -
$ docker stack deploy -c pets-prod-compose.yml pets
```
![](docs/images/pets-prod-arch.png)
![](images/pets-prod-arch.png)
version: '3.1'
services:
web:
#Use following image to download from Docker Hub
#image: chrch/docker-pets:latest
image: chrch/docker-pets:1.0
deploy:
mode: replicated
replicas: 2
replicas: 3
healthcheck:
interval: 10s
timeout: 5s
......
......@@ -4,7 +4,7 @@ services:
image: chrch/docker-pets:1.0
deploy:
mode: replicated
replicas: 2
replicas: 3
labels:
com.docker.ucp.mesh.http.5000: "external_route=http://<pets.url>,internal_port=5000"
com.docker.ucp.mesh.http.7000: "external_route=http://<admin.url>,internal_port=7000,sticky_sessions=paas_admin_id"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment