Skip to content

Instantly share code, notes, and snippets.

@thalysonalexr
Last active January 21, 2023 16:59
Show Gist options
  • Save thalysonalexr/d0d70151b2dacca152e15100096725bf to your computer and use it in GitHub Desktop.
Save thalysonalexr/d0d70151b2dacca152e15100096725bf to your computer and use it in GitHub Desktop.
Create loadbalancer nginx as Container Service in Swarm
#!/bin/sh
docker service create --name loadbalancer \
--mount type=bind,source=/data/loadbalancer,target=/etc/nginx/conf.d \
--publish 80:80 --publish 443:443 nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment