https://github.com/mirsch/docker-php
docker image based on php:7.3-fpm contains some php extension, composer and phpunit
https://github.com/mirsch/docker-php
composer docker docker-image dockerfile php php-fpm php73 phpunit
Last synced: about 2 months ago
JSON representation
docker image based on php:7.3-fpm contains some php extension, composer and phpunit
- Host: GitHub
- URL: https://github.com/mirsch/docker-php
- Owner: mirsch
- Created: 2019-09-03T10:36:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-03T11:22:05.000Z (over 5 years ago)
- Last Synced: 2025-01-19T19:52:12.860Z (4 months ago)
- Topics: composer, docker, docker-image, dockerfile, php, php-fpm, php73, phpunit
- Language: Dockerfile
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mirsch/php
this docker image is based on https://hub.docker.com/_/php
It contains PHP 7.3 FPM and CLI as well as some common php extensions like bcmath, ldap, gd, pdo_mysql.
Furthermore composer and phpunit are pre installed and xdebug is active.
It runs as an unprivileged user "dev" (password: dev)Usage example for composer, php-cli, bash and so on:
```bash
docker run -it --rm mirsch/php php --version
docker run -it --rm mirsch/php composer --version
docker run -it --rm mirsch/php phpunit --version
docker run -it --rm mirsch/php bash
```if you use PHP-FPM mount your workdir to /var/www.
## Example running PHP internal Browser
Here is how to run [GRAV](https://getgrav.org/) as an example for the internal server:\
download and unzip GRAV.
In the unpacked folder use:
```bash
docker run --rm -it -v ${PWD}:/var/www mirsch/php composer install
docker run --rm -it -v ${PWD}:/var/www -p 8000:8000 mirsch/php php -S 0.0.0.0:8000 system/router.php
```
you can access your site at http://localhost:8000## Example PHP-FPM and Nginx
... coming soon ...