https://github.com/nurettintopal/docker-php
Alpine Linux, php, php-fpm, nginx, git, composer for Docker
https://github.com/nurettintopal/docker-php
composer docker git nginx php php-fpm php8 php80 php81 php82 php83
Last synced: 6 months ago
JSON representation
Alpine Linux, php, php-fpm, nginx, git, composer for Docker
- Host: GitHub
- URL: https://github.com/nurettintopal/docker-php
- Owner: nurettintopal
- License: mit
- Created: 2017-11-06T18:49:14.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2024-12-08T09:08:32.000Z (10 months ago)
- Last Synced: 2025-03-23T22:24:38.371Z (7 months ago)
- Topics: composer, docker, git, nginx, php, php-fpm, php8, php80, php81, php82, php83
- Language: Dockerfile
- Homepage: https://github.com/nurettintopal/docker-php
- Size: 21.5 KB
- Stars: 10
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
docker PHP on alpine linux [](https://hub.docker.com/r/nurettintopal/docker-php/)
==============================================[Alpine Linux](https://www.alpinelinux.org/), [php](http://www.php.net/), [php-fpm](https://www.php-fpm.org/), [nginx](https://nginx.org/), [git](https://git-scm.com/), [composer](https://getcomposer.org/) for [Docker](https://www.docker.com/)
## branches & versions
| Branch | PHP | Note |
|:-------|:---|:---|
| main | 8.4 | stable |
| php-8.4 | 8.4 | stable |
| php-8.3 | 8.3 | stable |
| php-8.2 | 8.2 | stable |
| php-8.1 | 8.1 | stable |
| php-8.0 | 8.0 | stable - not updating anymore|
| php-7.4 | 7.4 | stable - not updating anymore|
| php-7.3 | 7.3 | stable - not updating anymore|
| php-7.2 | 7.2 | stable - not updating anymore|
| php-7.1 | 7.1 | stable - not updating anymore|## usage
build image:
```sh
$ docker build -t docker-php .
```run container:
```sh
$ docker run -d -p 8080:8080 docker-php
```open a browser and go to:
```sh
http://localhost:8080/
```connect to container with ssh:
```sh
$ docker exec -it CONTAINER_ID sh
```delete container:
```sh
$ docker rm -f CONTAINER_ID
```## usage with docker-compose
```note
cooming soon...
```## supported PHP extensions
- php-pcntl
- php-session
- php-mbstring
- php-json
- php-xml
- php-curl
- php-mysqli
- php-pdo
- php-pdo_mysql
- php-iconv
- php-dom
- php-phar
- php-openssl
- php-tokenizer
- php-xmlwriter
- php-simplexml
- php-ctype
- php-zlib
- php-redis## contributing
```note
cooming soon...
```## license
docker-php is open-sourced software licensed under the [MIT license](LICENSE).