Skip to content

fachririyanto/docker-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup PHP Dev Environment with Docker

Hello guys, this is my Docker setup for running PHP development. You can use it if you want :)

Fyi, this setup installed:

  1. PHP 8.x (Available 5.6)
  2. GIT
  3. RUBY
  4. SASS Compass
  5. PhantomJS
  6. Composer
  7. NodeJS 14.x
  8. Yarn
  9. Gulp
  10. Grunt

How to run:

  1. Open your terminal (make sure your Docker is running)
  2. run cd docker-php
  3. run docker build -t docker-php ./image
  4. run docker-compose up -d
  5. run docker exec -it docker-php_php_1 bash to enter Container console

After that, open http://localhost:8080 for PHPMyAdmin (username: root, password: password) and http://localhost for your PHP installation.

You can add / edit your PHP file inside "development" folder or you can create a new folder for your new project. I already created a folder called "test" for testing. You can run it on http://localhost/test

Also you can download a WordPress installation folder into "development" folder if you want build a website or apps using WordPress.

About

My docker setup for running PHP environment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published