Skip to content

Instantly share code, notes, and snippets.

View jarbelix's full-sized avatar
😎
Always learning

Jarbas Peixoto Júnior jarbelix

😎
Always learning
View GitHub Profile
@jarbelix
jarbelix / dynamic.yaml
Created November 8, 2020 20:16 — forked from Mau5Machine/dynamic.yaml
Traefik Dynamic Configuration File
## Setting up the middleware for redirect to https ##
http:
middlewares:
redirect:
redirectScheme:
scheme: https
@jarbelix
jarbelix / docker-compose.yml
Created November 8, 2020 20:15 — forked from Mau5Machine/docker-compose.yml
Traefik Configuration and Setup
version: "3.3"
services:
################################################
#### Traefik Proxy Setup #####
###############################################
traefik:
image: traefik:v2.0
restart: always
# --------------------------------------------------------------
# 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