- insert drives
- partition and format drives
- create mountpoints
- add mounts to /etc/fstab
- I like to reboot to test mounting went successfully on reboot
- create the docker secrets
docker stack deploy
or run it in portainer
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
#!/usr/bin/env bash | |
BACKUPTIME=`date +%Y-%m-%d` | |
BACKUPNAME=dockervolumes-$BACKUPTIME.tar.gz | |
SOURCEFOLDER=/var/lib/docker/volumes | |
DESTINATIONFOLDER=/tmp/dockerbackup | |
BACKUPFULLPATH=$DESTINATIONFOLDER/$BACKUPNAME | |
MINIOBUCKET=minio/dockervolumebackup | |
# Create the backup |
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 | |
# | |
# https://www.dynu.com/en-US/DynamicDNS/IP-Update-Protocol | |
# Hash password at https://www.dynu.com/NetworkTools/Hash | |
# DON'T FORGET TO ADD TO CRONTAB and CHMOD 700 | |
# ex.. @hourly /home/user/path/to/script | |
mkdir -p $HOME/dynu | |
command -v wget >/dev/null 2>&1 || { echo "I require wget but it's not installed." >&2; } |
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/bash | |
echo "This script installs the mongoDB and nodejs for Ubuntu Xenial 16.04" | |
echo "You then have options for express-generator, meteor, create-react-app, and feathers" | |
sleep 3 | |
sudo apt-get update | |
sudo apt-get install -y git curl |
title | description | author | tags | date_published |
---|---|---|---|---|
Running an NGINX Reverse Proxy with Docker and Let's Encrypt on Google Compute Engine |
Learn to serve multiple websites simultaneously in a single Compute Engine instance with Docker and NGINX. Also, learn how to secure the sites with Let's Encrypt. |
tswast |
Compute Engine, NGINX, Docker, Let's Encrypt |
2017-04-19 |
This tutorial will guide you through running multiple websites on a Google Compute Engine instance using Docker. You will secure the websites using free SSL/TLS certificates from Let's Encrypt.
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
# | |
# ROBOCOPY Script | |
# | |
# This script calls robocopy over a few folders, and then emails you when they're done | |
Param( | |
[Parameter(Mandatory=$true)] | |
[string]$basesrc, #"G:\", | |
[Parameter(Mandatory=$true)] | |
[string]$basedst, # |
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/bash | |
# This script installs the kanban-list application created by https://github.com/volpe28v/kanban-list | |
whoitis=$(whoami) | |
# Install RVM | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
curl -sSL https://get.rvm.io -o rvm.sh | |
chmod +x rvm.sh |
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/bash | |
# Docker | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common python python-pip | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
sudo apt-get install docker-ce |
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/bash | |
flarum_install="/home/$USER/flarum" | |
webuser_group='www-data' | |
OS_version=$(lsb_release -a 2> /dev/null | grep Description | tr -d \\t | cut -f2 -d:) | |
sudo gpasswd -a $USER www-data | |
# Add repo and key for php5.6 | |
# Support for Debian 7.10 and Ubuntu 14.04 | |
if [ "$OS_version" == "Debian GNU/Linux 7.11 (wheezy)" ] |