Skip to content

ikiranis/devit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

devit

Docker Dev environment for PHP, npm, Laravel, Vue, etc

Contains

  • PHP-FPM
  • GD
  • Composer
  • Xdebug
  • Npm/Vue

Build

  • Clone these files in a folder
  • Build the docker image
docker build . -t devit:1.0
  • Go to your project folder and run any command you want, after the:
docker run --rm --init -t -v $(pwd):/www -w /www -p 8000:8000 devit:1.0

Example:

docker run --rm --init -t -v $(pwd):/www -w /www -p 8000:8000 devit:1.0 composer install

Use an alias

Edit ~/.bashrc

nano ~/.bashrc

Add the alias

alias devit="docker run --rm --init -t -v $(pwd):/www -w /www -p 8000:8000 devit:1.0"

Run to reload bashrc

. ~/.bashrc

Use the alias to run a command

devit composer install

You can make any changes to dockerfile, to install other versions, or install anything else

About

Dev environment for PHP/npm/Laravel/Vue etc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages