Skip to content

SocialNerds/PHP-Docker-Starter-Pack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker for PHP

This is a development environment for PHP. It contains,

  • Apache
  • PHP-FPM
  • GD
  • Composer
  • MariaDB
  • phpMyAdmin

Installation

Requirements

  • You need to have Docker and Docker Compose installed

Run in root folder,

cp .env.example .env
docker-compose build && docker-compose up -d

Go to your browser on 127.0.0.1/test to check that everything is working correctly. You should see,

Hello world!

Start developing your PHP application in ./data/www/[NEW_FOLDER]

You may add new alias for this folder in ./http/vhosts/main.conf

Login to the container,

docker exec -it app_fpm /bin/bash -c "TERM=$TERM exec bash"

Exit the container,

exit

Shutdown containers

docker-compose down

By SocialNerds

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages