Git Product home page Git Product logo

docker-wordpress-localhost's Introduction

Required setup

In order to use this you will need docker desktop installed and the mkcert utility for creating ssl certificates

check if you have it by using:

mkcert --version

if you do not, you can install with homebrew (MacOS):

brew install mkcert

For Windows:

choco install mkcert

Getting Started

Use the .env file to define your variables. Here you can set up what you want your local site url to be as well as all the database settings that will be applied to your wp-config.php file.

Once you are happy with your setup navigate to the cli folder

cd cli

Run the two scripts:

bash add-hosts.sh

This will add a hosts file entry for your site url so that you can access it with your custom url instead of "localhost"

bash create-cert.sh

This uses the mkcert utility to generate ssl certificates and adds them to the certs folder. It may prompt you to enter your password to trust the certs when they are created.

Run Docker

Now you are ready to go! Change directories back one:

cd ..

Run docker compose and the images will be downloaded and your local instance will be setup and accessible at your custom url.

docker-compose up

docker-wordpress-localhost's People

Contributors

khairulimran-97 avatar

Stargazers

 avatar

Watchers

 avatar

docker-wordpress-localhost's Issues

Thanks your for this !

Thank you very much or your script.
I was looking for something for a while know and all is working !

I have a question regarding the site health status where the cURL through the API is connection refused

Do you have any idea on how I can allow this connection?

Thanks for your help

Capture d’écran 2023-10-12 à 18 58 53

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.