This file contains hidden or 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
| ## Setting up the middleware for redirect to https ## | |
| http: | |
| middlewares: | |
| redirect: | |
| redirectScheme: | |
| scheme: https |
This file contains hidden or 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
| version: "3.3" | |
| services: | |
| ################################################ | |
| #### Traefik Proxy Setup ##### | |
| ############################################### | |
| traefik: | |
| image: traefik:v2.0 | |
| restart: always |
This file contains hidden or 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
| # -------------------------------------------------------------- | |
| # script to create a new Docker Swarm from scratch on VirtualBox | |
| # -------------------------------------------------------------- | |
| #!/usr/bin/bash | |
| NUM_NODES=5 | |
| LEADER_NODE=node-1 | |
| # clean up | |
| for NODE in $(seq 1 $NUM_NODES); do |