Code Monkey home page Code Monkey logo

docker-dev-wordpress's Introduction

WordPress Development Environment ๐Ÿ‹

This repository initializes a local WordPress development environment using Docker and Docker Compose.

Features

  • XDebug integration with Visual Studio Code
  • PHP error logging to the host machine
  • Email capturing via smtp4dev service
  • phpMyAdmin integration

Setup

  1. Clone this repository on your local machine.

  2. Make sure you have both Docker and Docker Compose installed.

  3. Start the containers by executing the command below:

docker compose -f docker-compose.yaml up -d

Post-setup

After successfully setting up the environment, you can access and interact with the various components as follows:

WordPress

  • WordPress: http://127.0.0.1:80/
  • WordPress Admin Panel: http://127.0.0.1:80/wp-admin/

First-Time Setup

When you access WordPress for the first time, you'll need to go through the initial setup process:

  1. Visit http://127.0.0.1:80/ in your web browser.
  2. Choose your preferred language.
  3. On the next page, fill in the site information and create your admin account as prompted.
  4. Click "Install WordPress" to complete the setup.
  5. You can now access the admin panel using your username and password.

Themes and Plugins

You can easily add custom themes and plugins to your WordPress development environment:

  • Place your custom themes under the wp-content/themes/ directory.

  • Place your custom plugins under the wp-content/plugins/ directory.

Mail Server

All emails sent from WordPress are accessible from here:

  • smtp4dev Web Interface: http://127.0.0.1:5000

MySQL Database

You can connect to the database using 3rd party tools like MySQL Workbench:

  • Host: 127.0.0.1
  • Port: 3306
  • Username: root
  • Password: root

Otherwise, use the phpMyAdmin web interface for database manipulation:

  • phpMyAdmin Web Interface: http://127.0.0.1:4000

Customization

Note: Remember to rebuild the WordPress Docker image after either adding custom scripts or modifying the PHP configurations.

Custom PHP Scripts

To add custom PHP scripts:

  • Place your scripts within the configs/var/www/html/ directory.
  • These scripts will be automatically included in the web root of the container.

PHP Configuration

To extend or modify PHP configurations:

  • Edit the file: configs/usr/local/etc/php/conf.d/user.ini
  • This file allows you to override default PHP settings or add new ones.

docker-dev-wordpress's People

Contributors

alireza1219 avatar

Watchers

 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.