Skip to content

secuone/docker-php-mysql-structure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP with MySQL and Adminer basic structure in Docker

This project provides a basic structure for developing PHP applications using MySQL as the database, all running in Docker containers. It includes Make commands for easy project management.

Getting Started

Prerequisites

To run this project, you need to have Docker and Docker Compose installed on your machine.

Installation

  1. Clone this repository to your local machine:

    git clone <repository_url>
  2. Navigate to the project directory:

    cd project_directory_name
  3. Copy the .env.example file and rename it to .env:

    cp .env.example .env
  4. Configure the environment variables in the .env file as needed.

Usage

  1. To build the application, run:

    make setup
  2. To start the application, run:

    make up
  3. Once the application is started, you can access it from your web browser at http://localhost:8000.

  4. To stop the application, run:

    make down

Project Structure

root
├── app # PHP Code
│   └── index.php
├── etc # Infrastructure
│   └── php
│       └── Dockerfile
├── migrations # DB Migrations
│   └── database.sql # Migration example
├── docker-compose.yml
├── Makefile
└── README.md

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published