Skip to content

Instantly share code, notes, and snippets.



Block or report user

Report or block souhaiebtar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
souhaiebtar /
Created Sep 13, 2018 — forked from BretFisher/
Docker Swarm Port Requirements, both Swarm Mode 1.12+ and Swarm Classic, plus AWS Security Group Style Tables

Docker Swarm Mode Ports

Starting with 1.12 in July 2016, Docker Swarm Mode is a built-in solution with built-in key/value store. Easier to get started, and fewer ports to configure.

Inbound Traffic for Swarm Management

  • TCP port 2377 for cluster management & raft sync communications
  • TCP and UDP port 7946 for "control plane" gossip discovery communication between all nodes
  • UDP port 4789 for "data plane" VXLAN overlay network traffic
  • IP Protocol 50 (ESP) if you plan on using overlay network with the encryption option

AWS Security Group Example

souhaiebtar / nginx-thingsboard
Created Aug 2, 2018 — forked from mfalkvidd/nginx-thingsboard
Thingsboard nginx reverse proxy with websocket and HTTPS support (Let's Encrypt)
View nginx-thingsboard
server {
listen 80;
if ($scheme != "https") {
return 301 https://$host$request_uri;
} # managed by Certbot
server {
souhaiebtar /
Created Jul 15, 2018 — forked from fideloper/
Setup Vim+Vundle+Solarized+Tmux in a Vagrant Ubuntu box. This goes with my article on Vim+Tmux here:
#!/usr/bin/env bash
# Bash script to automate Vim+Tmux install as written about here:
# Test if Git is installed.
# Installing Git is not the job of this script
git --version 2>&1 >/dev/null
You can’t perform that action at this time.