Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/greeflas/docker-php

PHP docker images with composer, git and nano. Based on official PHP docker images.
https://github.com/greeflas/docker-php

docker dockerfiles php-docker php-docker-image php-docker-stack

Last synced: about 1 month ago
JSON representation

PHP docker images with composer, git and nano. Based on official PHP docker images.

Awesome Lists containing this project

README

        





PHP Docker Images



[![Docker Pulls](https://img.shields.io/docker/pulls/greeflas/php.svg)](https://hub.docker.com/r/greeflas/php/)
[![Docker Build Status](https://img.shields.io/docker/cloud/build/greeflas/php.svg)](https://hub.docker.com/r/greeflas/php/)
[![Docker Automated build](https://img.shields.io/docker/automated/greeflas/php.svg)](https://hub.docker.com/r/greeflas/php/)

PHP docker images with composer, git and nano. Based on official PHP docker images.

Supported tags and respective `Dockerfile` links
------------------------------------------------

* `7.4-fpm`, `latest` ([fpm/7.4/Dockerfile](https://github.com/greeflas/docker-php/blob/master/fpm/7.4/Dockerfile))
* `7.3-fpm` ([fpm/7.3/Dockerfile](https://github.com/greeflas/docker-php/blob/master/fpm/7.3/Dockerfile))
* `7.2-fpm` ([fpm/7.2/Dockerfile](https://github.com/greeflas/docker-php/blob/master/fpm/7.2/Dockerfile))
* `7.1-fpm` ([fpm/7.1/Dockerfile](https://github.com/greeflas/docker-php/blob/master/fpm/7.1/Dockerfile))
* `7.0-fpm` ([fpm/7.0/Dockerfile](https://github.com/greeflas/docker-php/blob/master/fpm/7.0/Dockerfile))
* `5.6-fpm` ([fpm/5.6/Dockerfile](https://github.com/greeflas/docker-php/blob/master/fpm/5.6/Dockerfile))

Usage
-----

Access container

`$ docker run -it --rm -v "$PWD":/var/www/app greeflas/php:7.4-fpm bash`

Docker-compose

```yaml
services:
# PHP FPM
php-fpm:
image: greeflas/php-fpm:7.4
container_name: php-fpm
volumes:
- ./:/var/www/app
working_dir: /var/www/app
```

`$ docker-compose exec php-fpm bash`