add docker-service.sh with example for manually adding a service to an existing lb

This commit is contained in:
Ian Munoz 2018-06-19 11:11:40 -04:00
parent 09bd0c64aa
commit 91aff18202
1 changed files with 8 additions and 0 deletions

8
docker-service.sh Executable file
View File

@ -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