Skip to content

Instantly share code, notes, and snippets.

@saikrishnamylaram
saikrishnamylaram / HA Proxy With Docker.md
Created May 13, 2022 09:18 — forked from dogukancagatay/HA Proxy With Docker.md
Basic HAProxy Setup for Multiple Services with Docker

Basic HAProxy Setup for Multiple Services with Docker

  • RabbitMQ
  • Redis
  • Web Server/Ingress
#!/bin/bash
# set up some variables
NOW_DATE=$(date '+%Y-%m-%d-%H-%M')
RESTORE_FROM_INSTANCE_ID=<source name>
TARGET_INSTANCE_ID=<target name>
TARGET_INSTANCE_CLASS=db.m4.large
VPC_ID=<vpc subnet id>
NEW_MASTER_PASS=<root password>
@saikrishnamylaram
saikrishnamylaram / install-docker.md
Created May 19, 2021 08:52 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start