From 91aff18202cfe5e4c5c5b1e5ab75d2c704306a83 Mon Sep 17 00:00:00 2001 From: Ian Munoz Date: Tue, 19 Jun 2018 11:11:40 -0400 Subject: [PATCH] add docker-service.sh with example for manually adding a service to an existing lb --- docker-service.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 docker-service.sh diff --git a/docker-service.sh b/docker-service.sh new file mode 100755 index 0000000..84f1553 --- /dev/null +++ b/docker-service.sh @@ -0,0 +1,8 @@ +docker service create -t \ + --constraint "node.hostname == ${NOD_HOSTNAME}" \ + --network $SWARM_NETWORK \ + --name explorer \ + --hostname explorer.beta.z.cash \ + --label traefik.port=3001 \ + --label traefik.frontend.rule='Host:explorer.beta.z.cash;' \ + ianamunoz/insight-explorer-zcash:v1.1.1