Hello guys, this is my Docker setup for running PHP development. You can use it if you want :)
Fyi, this setup installed:
- PHP 8.x (Available 5.6)
- GIT
- RUBY
- SASS Compass
- PhantomJS
- Composer
- NodeJS 14.x
- Yarn
- Gulp
- Grunt
How to run:
- Open your terminal (make sure your Docker is running)
- run
cd docker-php
- run
docker build -t docker-php ./image
- run
docker-compose up -d
- 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.