(0. Install Docker: https://docs.docker.com/install/)
- Run
docker-compose up
- Go to
localhost:5000
- Edit
index.php
- Reload
localhost:5000
- Repeat (3)
(0. Install Docker: https://docs.docker.com/install/)
docker-compose up
localhost:5000
index.php
localhost:5000
version: '3' | |
services: | |
web: | |
image: php:apache | |
volumes: | |
- ./:/var/www/html | |
ports: | |
- 5000:80 |
<? echo "Hello PHP" ?> |