Skip to content

Docker development environment for my laravel projects

Notifications You must be signed in to change notification settings

ammardev/php-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 

Repository files navigation

PHP Image with my configurations

Docker Hub Link

Build, Push php 7.1 image Build, Push php 7.3 image Build, Push php 8.0 image Build, Push php 8.1 image

This is a Docker image for PHP FPM with my own configuration. The image has Composer installed by default with many PHP extensions enabled.

Usage

By default, the container will create a webserver using PHP built-in web server feature.

docker run -v $PWD:/var/www -p 80:80 ammardev0/php

You can execute any other command. That will run your command inside the container without running the web server.

docker run ammardev0/php php -v

Available tags/versions

  • 7.1
  • 7.3
  • 8.0
  • 8.1 / latest

Extensions

  • XDebug
  • Memcached
  • Redis
  • MongoDB
  • GD
  • bcmath
  • pdo_mysql
  • zip
  • exif
  • opcache
  • calendar
  • pcntl

Aliases

The image has many aliases enabled by default (Assuming that you are using the zsh shell).

art = php artisan
test = clear && php artisan test

Other useful tools

This package has the following tools installed:

  • ZSH shell
  • Composer
  • Laravel Envoy (Installed Globally)

About

Docker development environment for my laravel projects

Topics

Resources

Stars

Watchers

Forks