Skip to content

Instantly share code, notes, and snippets.

@leegraham25
leegraham25 / docker_install.sh
Created April 12, 2018 22:14
Docker Installation Script
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
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 -y docker-ce
sudo usermod -aG docker ${USER}
su - ${USER}
docker run hello-world
@leegraham25
leegraham25 / apache_react_django_config.md
Last active April 13, 2025 05:11
Apache Configuration for React and Django Rest Framework

Setting Up Apache to Run a React Frontend and a Django Rest Framework Backend on a Single Machine

This gist should get React and Django Rest Framework running on debian with apache as the HTTP server.

Step 1 - Install Apache and UFW

First we need to install apache2 and apache2-dev (for compiling mod_wsgi), and set the firewall to allow apache with ufw.

sudo apt upgrade
sudo apt install apache2 apache2-dev ufw
sudo ufw allow 'Apache Full'