A simple PHP development environment for Docker.
This Docker setup includes PHP7-FPM , MySQL, Njinx and phpMyAdmin.
- Put your code into the
code
file - Start your program:
./start.sh
- Open your browser:
- localhost:8080
- localhost:8081 phpMyAdmin (username: root, password: root)
- Stop and clear services:
./stop.sh
Use docker logs --help
to know more about that :)
e.g.
# Follow log output:
$ docker logs -f nginx-container-name
# Show the last 10 logs on the nginx service:
$ docker logs --tail=10 nginx-container-name