Sign inSign up

ed1rac/php_dev_apache_mysql_postgre

By ed1rac

•Updated almost 2 years ago

PHP dev environment with MySQL & PostgreSQL using Docker. Includes Dockerfile & docker-compose.yml

Image
Languages & frameworks
Developer tools
Web servers
0

232

ed1rac/php_dev_apache_mysql_postgre repository overview

⁠PHP Development Environment with MySQL and PostgreSQL using Docker 🐳

⁠Overview

This Docker image provides a practical and lightweight environment for developing PHP applications with support for both MySQL and PostgreSQL databases. It allows you to quickly set up a local development environment with Apache, PHP, MySQL, and PostgreSQL, making it perfect for testing and rapid development. 🚀

⁠Features

  • 🐘 PHP with Apache: A complete PHP environment ready to use.
  • 🐬 MySQL and 🐘 PostgreSQL: Databases fully integrated for development.
  • ⚙️ Docker Compose: Easily manage and orchestrate containers.
  • 📦 Data Persistence: Use volumes for database persistence (html, mysql, and postgres).

⁠Getting Started

⁠Prerequisites
⁠How to Use
  1. Clone the Repository:

    git clone https://github.com/ed1rac/php-mysql-postgres-docker-env.git
    cd php-mysql-postgres-docker-env
    
  2. Start the Environment: Run the command below to start the environment:

    docker-compose up -d
    
  3. Access the Services:

⁠Default Credentials
⁠MySQL
  • Host: localhost
  • Port: 3306
  • User: devuser
  • Password: devpass
⁠PostgreSQL
  • Host: localhost
  • Port: 5432
  • User: devuser
  • Password: devpass

⁠Customization

  • Add PHP Extensions: Modify the Dockerfile to include additional PHP extensions.
  • Volumes and Data Persistence: Use docker-compose.yml to configure data persistence.

⁠Contributing

Contributions are always welcome! Feel free to suggest improvements or submit pull requests.

⁠License

This project is licensed under the MIT License. See the LICENSE⁠ for more details.

Tag summary

Content type

Image

Digest

sha256:dc44a1d04…

Size

242.5 MB

Last updated

almost 2 years ago

docker pull ed1rac/php_dev_apache_mysql_postgre