Coder Social home page Coder Social logo

shahkamran / docker-wordpress-multisite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pie-inc/docker-wordpress-multisite

0.0 0.0 0.0 1.31 MB

Docker WordPress Multisite Boilerplate

License: MIT License

JavaScript 24.95% CSS 0.98% PHP 8.65% Shell 52.10% Dockerfile 13.31%

docker-wordpress-multisite's Introduction

Docker WordPress Multisite

Pre-requisites

Nodejs

  • Install Node for your platform.

Docker

Getting started

Clone this repository:

git clone [email protected]:pie-inc/docker-wordpress-multisite.git <TARGET FOLDER>

Then install dependencies: npm i or yarn

Once all packages have been installed, run yarn start to build the docker images, start the docker containers and watch all source files for changes.

Alternatively you can just run npm run serve, yarn serve or docker-compose up -d to download/build the docker images and start the server.

A few folders and files will be created inside ./data for debugging, mainly mysql. These folders are local and will not be included in the git flow.

Go through the famous 5-minute wordpress instalation by going to http://localhost:8080

Enabling multisite

In line 220 or data/docker-entrypoint.sh, update the email section to the admin email.

Jump into the wordpress container, enable multisite with WP-CLI and update the .htaccess, making a backup of the original.

docker-compose exec wp bash
wp core multisite-convert
mv .htaccess backup.htaccess
mv multisite.htaccess .htaccess

local SSL Certificates

You will need install makecert.

Using homebrew:

brew install mkcert
brew install nss # if you use Firefox
mkcert -install

Then, you will have to generate the Certificates

mkcert localhost 127.0.0.1 ::1

And finally copy the certificates from the mentioned location in the terminal into ./data/certs/

You can also generate your own, or use existing ones you might have. (Using openSSL)

FAQ

Does it work immediately?

Nope.

What if I don't want to use SSL?

You have to change quite a few settings, like the nginx configuration file.

I'd like to start fresh, what do I do?

Type npm run reset or yarn reset and voilà!

This is not working properly in Windows... Help!

Although it might work in Windows, I have only used this process in *NIX machines. Some commands might have to be altered in package.json to adapt for proper Windows usage.

docker-wordpress-multisite's People

Contributors

dependabot[bot] avatar offeringofpie 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.