https://github.com/asapdotid/docker-php
Docker Image PHP-FPM
https://github.com/asapdotid/docker-php
Last synced: 4 months ago
JSON representation
Docker Image PHP-FPM
- Host: GitHub
- URL: https://github.com/asapdotid/docker-php
- Owner: asapdotid
- License: gpl-3.0
- Created: 2022-12-23T03:45:19.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-23T04:20:53.000Z (about 3 years ago)
- Last Synced: 2025-05-18T04:36:14.620Z (8 months ago)
- Language: Shell
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker image PHP (PHP-FPM - Alpine Linux)




## Overview
This is a Dockerfile/image to build a container for PHP-FPM base from (`webdevops/php:8.1-alpine`) [doc](https://github.com/webdevops/Dockerfile/tree/master/docker/php). The container also has the ability to setup with composer
Custom from original `asapdotid/php`:
- Timezone (default: Asia/Jakarta)
- PHP-FPM
- Composer
## Environment Variables
| Environment | Default | Description |
| --------------- | ------------ | ------------------------------------------------- |
| APPLICATION_UID | 1000 | PHP-FPM UID (Effective user ID) |
| APPLICATION_GID | 1000 | PHP-FPM GID (Effective group ID) |
| TIMEZONE | Asia/Jakarta | Timezone for OS and PHP config |
| APP_ENV | develpment | For build `development` or `production` |
| SKIP_COMPOSER | 0 | Support for composer install in application mount |
## Versioning
| Docker Tag | Git Release | Composer Version | PHP Version | Alpine Version |
| ---------- | ----------- | ---------------- | ----------- | -------------- |
| latest | Main Branch | 2.x.x | 8.1.13 | 3.17 |
| 1.0.0 | Main Branch | 2.x.x | 8.1.13 | 3.17 |
### Links
- [https://github.com/asapdotid/docker-php](https://github.com/asapdotid/docker-php)
- [https://registry.hub.docker.com/u/asapdotid/php/](https://registry.hub.docker.com/u/asapdotid/php/)
## Quick Start
To pull from docker hub:
```
docker pull asapdotid/php:${IMAGE_VERSION}
```
### Running
To simply run the container:
```
docker run -d asapdotid/php:latest
```
You can then browse to `http://` to view the default install files. To find your `DOCKER_HOST` use the `docker inspect` to get the IP address (normally 172.17.0.2)
## License
MIT / BSD
## Author Information
This Code was created in 2022 by [Asapdotid](https://github.com/asapdotid).