From b540d47c0b1b47e0a32dbed65b248414d3374968 Mon Sep 17 00:00:00 2001 From: Socheat Sok Date: Wed, 22 Nov 2023 13:50:53 +0700 Subject: [PATCH] Update stack deployment --- stack/README.md | 17 +++++++++++++++++ stack/docker-compose.yml | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 stack/README.md diff --git a/stack/README.md b/stack/README.md new file mode 100644 index 0000000..c38a107 --- /dev/null +++ b/stack/README.md @@ -0,0 +1,17 @@ +# About + +Using docker stack deploy to deploy the `dockerswarm_sd_server` service to Docker Swarm. + +## Deploy + +Run the following command to deploy the `dockerswarm_sd_server` service to Docker Swarm. + +```bash +docker stack deploy -c docker-compose.yml dockerswarm_sd +``` + +## Remove + +```bash +docker stack rm dockerswarm_sd +``` diff --git a/stack/docker-compose.yml b/stack/docker-compose.yml index 3ef9ab4..9ca10ca 100644 --- a/stack/docker-compose.yml +++ b/stack/docker-compose.yml @@ -4,7 +4,7 @@ networks: external: true services: - dockerswarm_sd_server: + server: image: socheatsok78/dockerswarm_sd_server:latest networks: - dockerswarm_sd_network