asapdotid / docker-php

Docker Image PHP-FPM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker image PHP (PHP-FPM - Alpine Linux)

Docker Automated build docker hub docker hub Github

Overview

This is a Dockerfile/image to build a container for PHP-FPM base from (webdevops/php:8.1-alpine) doc. 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

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://<DOCKER_HOST> 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.

About

Docker Image PHP-FPM

License:GNU General Public License v3.0


Languages

Language:Shell 79.5%Language:Dockerfile 20.5%