From 6b3029aecf7b2e6eef27be6f4e0eaefea1d4b8f8 Mon Sep 17 00:00:00 2001 From: Amaury Borges Souza Date: Mon, 31 Jan 2022 09:29:23 -0300 Subject: [PATCH 1/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ebe5182..8fc68be 100644 --- a/README.md +++ b/README.md @@ -27,4 +27,4 @@ Pull requests are welcome. For major changes, please open an issue first to disc Please make sure to update tests as appropriate. ## License -[MIT](https://choosealicense.com/licenses/mit/) +[GNU General Public License v3.0](https://github.com/Docker-Tutorialz/wordpress-docker-stack/blob/main/LICENSE) From 0fc58e202d9d44a095dac87244543a84eb0b5667 Mon Sep 17 00:00:00 2001 From: Amaury Borges Souza Date: Mon, 31 Jan 2022 10:06:23 -0300 Subject: [PATCH 2/9] Update README.md --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8fc68be..97d6f4a 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,20 @@ pip install foobar To deploy the stack please proceed with the command below: ```shell -# docker stack deploy -c docker-compose.yml wordpress +$ docker stack deploy -c docker-compose.yml wordpress Creating network wordpress_default Creating service wordpress_blog Creating service wordpress_db ``` +## Checkng the network + +```shell +$ docker network ls +NETWORK ID NAME DRIVER SCOPE +owezpbfwk750 wordpress_default overlay swarm +``` + ## Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. From 83e55843d3b848909eb650a27f2add5efaf87f0e Mon Sep 17 00:00:00 2001 From: Amaury Borges Souza Date: Mon, 31 Jan 2022 10:20:48 -0300 Subject: [PATCH 3/9] Update README.md --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 97d6f4a..b06917f 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,23 @@ NETWORK ID NAME DRIVER SCOPE owezpbfwk750 wordpress_default overlay swarm ``` +## Checking the services + +``` +$ docker service ls +ID NAME MODE REPLICAS IMAGE PORTS +vmbkmj4rod1t wordpress_blog replicated 1/1 wordpress:latest *:8082->80/tcp +m5zwzf9mrwd7 wordpress_db replicated 1/1 mariadb:latest +``` + +## Checking the stack + +``` +# docker stack ls +NAME SERVICES ORCHESTRATOR +wordpress 2 Swarm +``` + ## Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. From 2527038567cd00aa5970d6d2b4595228b05a5dfa Mon Sep 17 00:00:00 2001 From: Amaury Borges Souza Date: Mon, 31 Jan 2022 10:27:13 -0300 Subject: [PATCH 4/9] Update README.md --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b06917f..032fb53 100644 --- a/README.md +++ b/README.md @@ -41,11 +41,29 @@ m5zwzf9mrwd7 wordpress_db replicated 1/1 mariadb:latest ## Checking the stack ``` -# docker stack ls +$ docker stack ls NAME SERVICES ORCHESTRATOR wordpress 2 Swarm ``` +## Checking the stack on nodes of Swarm + +``` +$ docker stack ps wordpress +ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS +j1nk21qrvyn1 wordpress_blog.1 wordpress:latest elliot02 Running Running about an hour ago +3dm7g8jmlwyi wordpress_db.1 mariadb:latest elliot01 Running Running about an hour ago +``` + +## Checkin the services on stack + +``` +$ docker stack services wordpress +ID NAME MODE REPLICAS IMAGE PORTS +vmbkmj4rod1t wordpress_blog replicated 1/1 wordpress:latest *:8082->80/tcp +m5zwzf9mrwd7 wordpress_db replicated 1/1 mariadb:latest +``` + ## Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. From b7fcd0aea9259ffd24c09ede99ee7d6a31e6c265 Mon Sep 17 00:00:00 2001 From: Amaury Borges Souza Date: Mon, 31 Jan 2022 10:28:45 -0300 Subject: [PATCH 5/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 032fb53..a07aa45 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## `Docker Compose - Deploying two services on Swarm` +## Docker Compose - Deploying two services on Swarm When talking about Docker in production environments, Docker Compose is mainly used, it is here in Compose that you code how your application should be deployed (services, volumes, networks). You can have n services (database, app, load balance) that Docker Compose will handle all this in a simple and organized way, that's because Compose uses YAML files and you can declaratively write your resources and thus upload your app quickly and efficiently. From 6c3fa30ae817d1941c5c5ac7fd7573822a6fe44f Mon Sep 17 00:00:00 2001 From: Amaury Borges Souza Date: Mon, 31 Jan 2022 10:34:15 -0300 Subject: [PATCH 6/9] Update README.md install Docker command --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a07aa45..4a92d6f 100644 --- a/README.md +++ b/README.md @@ -4,17 +4,17 @@ When talking about Docker in production environments, Docker Compose is mainly u ## Installation -Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar. +Use the documentation [Docker](https://docs.docker.com/engine/install/) to install Docker. ```bash -pip install foobar +$ curl -fsSl https://get.docker.com | bash ``` ## Usage To deploy the stack please proceed with the command below: -```shell +```bash $ docker stack deploy -c docker-compose.yml wordpress Creating network wordpress_default Creating service wordpress_blog @@ -23,7 +23,7 @@ Creating service wordpress_db ## Checkng the network -```shell +```bash $ docker network ls NETWORK ID NAME DRIVER SCOPE owezpbfwk750 wordpress_default overlay swarm @@ -31,7 +31,7 @@ owezpbfwk750 wordpress_default overlay swarm ## Checking the services -``` +```bash $ docker service ls ID NAME MODE REPLICAS IMAGE PORTS vmbkmj4rod1t wordpress_blog replicated 1/1 wordpress:latest *:8082->80/tcp @@ -40,7 +40,7 @@ m5zwzf9mrwd7 wordpress_db replicated 1/1 mariadb:latest ## Checking the stack -``` +```bash $ docker stack ls NAME SERVICES ORCHESTRATOR wordpress 2 Swarm @@ -48,7 +48,7 @@ wordpress 2 Swarm ## Checking the stack on nodes of Swarm -``` +```bash $ docker stack ps wordpress ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS j1nk21qrvyn1 wordpress_blog.1 wordpress:latest elliot02 Running Running about an hour ago @@ -57,7 +57,7 @@ j1nk21qrvyn1 wordpress_blog.1 wordpress:latest elliot02 Running ## Checkin the services on stack -``` +```bash $ docker stack services wordpress ID NAME MODE REPLICAS IMAGE PORTS vmbkmj4rod1t wordpress_blog replicated 1/1 wordpress:latest *:8082->80/tcp From e4bfe1c79be92a09ded117f2691731e71dbdc4d8 Mon Sep 17 00:00:00 2001 From: Amaury Borges Souza Date: Mon, 31 Jan 2022 10:35:18 -0300 Subject: [PATCH 7/9] install Docker command --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4a92d6f..0d6ae38 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ When talking about Docker in production environments, Docker Compose is mainly u ## Installation -Use the documentation [Docker](https://docs.docker.com/engine/install/) to install Docker. +Use the documentation [Docker Engine](https://docs.docker.com/engine/install/) to install Docker on your machine. ```bash $ curl -fsSl https://get.docker.com | bash From 84953069aac7a4bf43c35e2e55c22887a659255f Mon Sep 17 00:00:00 2001 From: Amaury Borges Souza Date: Mon, 31 Jan 2022 10:42:11 -0300 Subject: [PATCH 8/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d6ae38..b8726dc 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ When talking about Docker in production environments, Docker Compose is mainly u ## Installation -Use the documentation [Docker Engine](https://docs.docker.com/engine/install/) to install Docker on your machine. +Use the documentation [Docker Engine](https://docs.docker.com/engine/install/) to install Docker on your machine. Make sure you have a Swarm cluster to deploy the Stack. ```bash $ curl -fsSl https://get.docker.com | bash From e3348bd4908d292126ed3aa4ee1f76e471eaa77a Mon Sep 17 00:00:00 2001 From: Amaury Borges Souza Date: Tue, 8 Feb 2022 23:19:17 -0300 Subject: [PATCH 9/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b8726dc..5020f52 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ NAME SERVICES ORCHESTRATOR wordpress 2 Swarm ``` -## Checking the stack on nodes of Swarm +## Checking the stack on nodes of Swarm cluster ```bash $ docker stack ps wordpress pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy