Coder Social home page Coder Social logo

andygrillo / multiple-docker-wp-fpm-nginx-proxy-setup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from petertucker/multiple-docker-wp-fpm-nginx-proxy-setup

0.0 0.0 0.0 7 KB

Project for a memory efficient, SSL encrypted multiple wordpress fpm docker setup using jwilder's nginx-proxy as a reverse proxy.

PHP 100.00%

multiple-docker-wp-fpm-nginx-proxy-setup's Introduction

Multiple Wordpress FPM Setup with jwilder/nginx-proxy, Let's Encrypt SSL, and low memory mysql using docker-compose! Phew! (yes, this is the repo you've been looking for)

Maybe my google-fu is not up to snuff, or maybe I'm the first to figure out this setup. Regardless, in my search to find a multiple wordpress fpm docker setup I came across many other devs(stackoverflow, reddit, github) who while in search of the same setup all seemed to run into roadblocks. Most of the conversations I read seemed to end with a dead end, and then the devs ultimately switched to traefik. Understandable. I too almost gave up on this setup with jwilder's nginx-proxy.

But Alas! After much experimenting, I was finally able to get a multiple wordpress fpm docker setup working. I've used WORDPRESS-FPM/NGINX & LOW-MEMORY-MYSQL as they both are resource efficient docker images, as opposed to the docker apache flavor version of wordpress, and the normal mysql image.

I'm uploading this setup to github so hopefully others may find it.

Setup:

In wordpress/docker-compose.yml, change out example.com to your URL, and [email protected] to your email. Change out <MYSQL_PASSWORD>.

If you change out the name of "wp1_site" in the wordpress/docker-compose.yml make sure you change out the name in wordpress/nginx/nginx.conf:

    fastcgi_pass wp1_site:9000;

In wordpress2/docker-compose.yml, change out example2.com to your URL, and [email protected] to your email. Change out <MYSQL_PASSWORD>

If you change out the name of "wp2_site" in the wordpress2/docker-compose.yml make sure you change out the name in wordpress2/nginx/nginx.conf

    fastcgi_pass wp2_site:9000;

RUN:

docker network create nginx-proxy

cd nginx-proxy
docker-compose up -d

cd ../wordpress
docker-compose up -d

cd ../wordpress2
docker-compose up -d

Resources:

https://medium.com/swlh/wordpress-deployment-with-nginx-php-fpm-and-mariadb-using-docker-compose-55f59e5c1a

https://blog.ssdnodes.com/blog/host-multiple-ssl-websites-docker-nginx/

multiple-docker-wp-fpm-nginx-proxy-setup's People

Contributors

petertucker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.