Skip to content

This repository contains a Docker environment for Wordpress applications.

Notifications You must be signed in to change notification settings

Azshurith/Dockerized-Multi-Instance-Wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌟 Multi Wordpress Docker 🐋 Environment 🌟

License

This repository contains a Docker environment for Wordpress applications.

🛠️ Makefile Commands

project_start        Starts the Project
project_stop         Stops the Project
wordpress_1_deploy   Deploy Wordpress 1
wordpress_2_deploy   Deploy Wordpress 2

📝 Environment Variables (.env)

Ensure to set up your environment variables in the .env file.

# Docker Project
PROJECT_NAME=wordpressmultiinstance
PROJECT_VERSION=1.0

# MariaDB Configurations
MARIADB_CONNECTION=mysql
MARIADB_HOST=host.docker.internal
MARIADB_PORT=3306
MARIADB_DATABASE_1=wordpress_1
MARIADB_DATABASE_2=wordpress_2
MARIADB_USERNAME=user
MARIADB_PASSWORD=user
MARIADB_DOCKERFILE=.docker/MariaDB
MARIADB_URL=${MARIADB_CONNECTION}://${MARIADB_USERNAME}:${MARIADB_PASSWORD}@${MARIADB_HOST}:${MARIADB_PORT}/${MARIADB_DATABASE}

# PhpMyAdmin Configurations
PHPMYADMIN_DOCKERFILE=.docker/PhpMyAdmin
PHPMYADMIN_PORT=8080
PHPMYADMIN_PORT_MAP=80
PHPMYADMIN_PMA_HOST=MariaDB

# Wordpress 1 Configurations
WORDPRESS_1_DOCKERFILE=.docker/Wordpress
WORDPRESS_1_PORT=8081
WORDPRESS_1_PORT_MAP=80
WORDPRESS_1_DIRECTORY=./Wordpress_1
WORDPRESS_1_WORK_DIRECTORY=/var/www/html

# Wordpress 2 Configurations
WORDPRESS_2_DOCKERFILE=.docker/Wordpress
WORDPRESS_2_PORT=8082
WORDPRESS_2_PORT_MAP=80
WORDPRESS_2_DIRECTORY=./Wordpress_2
WORDPRESS_2_WORK_DIRECTORY=/var/www/html

🚀 Getting Started

Prerequisites 🛠️

  • Docker: Install Docker on your system if you haven't already. You can download it here.

Installation 📦

Setting up Wordpress

  1. Set up your environment variables in the .env file.
  2. Run make project_start to start the Docker environment.
  3. Access your PhpMyAdmin application at http://localhost:8080/.
  4. Access your Wordpress 1 application at http://localhost:8081/.
  5. Access your Wordpress 2 application at http://localhost:8082/.

Contributing 🤝

Contributions are welcome! If you'd like to contribute to this project, please follow the Contributing Guidelines.

License 📝

This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE file for details.

Acknowledgments 🙏

Special thanks to the open-source community for their valuable contributions and inspiration.

Contact 📧

For questions or feedback, please feel free to reach out:

Made with ❤️ by Devitrax

About

This repository contains a Docker environment for Wordpress applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published