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
{ | |
"features": { | |
"buildkit": true | |
}, | |
"default-address-pools": [ | |
{ | |
"base": "172.50.0.0/24", | |
"size": 28 | |
} | |
] |
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 |
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 network create \ | |
--subnet <same-pool-address-default-docker-subnets> \ | |
--opt com.docker.network.bridge.name=docker_gwbridge \ | |
--opt com.docker.network.bridge.enable_icc=false \ | |
--opt com.docker.network.bridge.enable_ip_masquerade=true \ | |
docker_gwbridge | |
OlderNewer