Skip to content

Instantly share code, notes, and snippets.

View Cursedpotential's full-sized avatar

Matt Salem Cursedpotential

  • Michigan, USA
  • 22:42 (UTC -04:00)
View GitHub Profile
"Microsoft.Windows.CapturePicker","Microsoft.Windows.CapturePicker_10.0.19580.1000_neutral__cw5n1h2txyewy"
@Cursedpotential
Cursedpotential / Ghost_docker_nginx.md
Last active October 30, 2021 19:32
Ghost with Nginx and mysql docker compose file

Install Ghost CMS on Docker

Includes config for second reverse proxy through NGINX

Install Ghost

The Ghost installation will comprise of three components or containers - Ghost package, a database server (MySQL), and a web server (Nginx). All these services will be installed using a single Docker compose file. I have included a second cerbot and nginx config to act as a reverse proxy to a wordpress instance I have installed on my network. If you don't need a second site then ignore the commented sections referring to this.

Install Certbot and obtain the SSL certificate

@Cursedpotential
Cursedpotential / wordpress_docker.md
Last active November 4, 2021 23:09
Wordpress Docker Compose with MySQL, Create Web network before deployment. Ready to add RProxy Container and remove WP from web network.

Simple Wordpress Install on Docker

This file will setup Wordpress & MySQL with a single command.

Steps:

Create a new folder to house your docker-compose file and mount our WP volumes in. I will be using $HOME/wordpress_docker/:

$ cd && mkdir wordpress_docker 
$ cd wordpress_docker	
@Cursedpotential
Cursedpotential / wordpress_docker_pma.md
Last active October 30, 2021 15:42
Wordpress with MySQL & phpMyAdmin - Add external network "web" before deployment. Ready to add reverse proxy and remove both WP and PMA from external facing network.

Wordpress on Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command.

This files also uses 2 networks. I did this so that nginx or another reverse proxy could be added to the stack and then the WP container could be taken off the outward facing "web" network. I might add another more simple config later.

Steps:

Create a docker network called "web":

@Cursedpotential
Cursedpotential / docker_compose_portainer.md
Last active October 17, 2023 10:40
Installing Docker, Docker Compose and Portainer on Ubuntu 20.04 21.10

Installing Docker with Docker Compose & Portainer

Install Docker

Preparing the system:

Removing any old installations of Docker
sudo apt-get remove docker docker-engine docker.io containerd runc