Last active
January 21, 2023 16:59
-
-
Save thalysonalexr/d0d70151b2dacca152e15100096725bf to your computer and use it in GitHub Desktop.
Create loadbalancer nginx as Container Service in Swarm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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