Created
November 3, 2019 10:34
-
-
Save paulwellnerbou/ae795d0979642a8b19486dad682a0c44 to your computer and use it in GitHub Desktop.
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
# Install Docker | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable edge" | |
apt-get install -y docker-ce | |
sudo usermod -aG docker ubuntu | |
# Install Docker Compose | |
curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose | |
# Prepare Environment Variables | |
export PUBLIC_IP=$(curl ipinfo.io/ip) | |
export DOCKER_HOST_IP=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1) | |
# needed for elasticsearch | |
sudo sysctl -w vm.max_map_count=262144 | |
sudo echo "sudo sysctl -w vm.max_map_count=262144" > /etc/rc.local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment