Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e18202014f | |||
|
|
897fe51326 |
@@ -1,4 +1,4 @@
|
||||
FROM php:8-fpm-alpine
|
||||
FROM php:7.4-fpm-alpine
|
||||
|
||||
LABEL maintainer="Ric Harvey <ric@ngd.io>"
|
||||
|
||||
@@ -204,8 +204,8 @@ RUN echo /etc/apk/respositories && \
|
||||
--with-jpeg && \
|
||||
#curl iconv session
|
||||
#docker-php-ext-install pdo_mysql pdo_sqlite mysqli mcrypt gd exif intl xsl json soap dom zip opcache && \
|
||||
docker-php-ext-install pdo_mysql pgsql pdo_pgsql mysqli gd exif intl xsl soap zip opcache && \
|
||||
pecl install xdebug-3.1.2 && \
|
||||
docker-php-ext-install iconv pdo_mysql pdo_sqlite pgsql pdo_pgsql mysqli gd exif intl xsl json soap dom zip opcache && \
|
||||
pecl install xdebug-2.9.2 && \
|
||||
pecl install -o -f redis && \
|
||||
echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini && \
|
||||
docker-php-source delete && \
|
||||
|
||||
11
README.md
11
README.md
@@ -1,6 +1,5 @@
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
## Overview
|
||||
This is a Dockerfile/image to build a container for nginx and php-fpm, with the ability to pull website code from git when the container is created, as well as allowing the container to push and pull changes to the code to and from git. The container also has the ability to update templated files with variables passed to docker in order to update your code and settings. There is support for lets encrypt SSL configurations, custom nginx configs, core nginx/PHP variable overrides for running preferences, X-Forwarded-For headers and UID mapping for local volume support.
|
||||
@@ -10,7 +9,7 @@ If you have improvements or suggestions please open an issue or pull request on
|
||||
### Versioning
|
||||
| Docker Tag | Git Release | Nginx Version | PHP Version | Alpine Version |
|
||||
|-----|-------|-----|--------|--------|
|
||||
| latest/1.10.4 | Master Branch |1.18.0 | 7.4.10 | 3.12 |
|
||||
| latest/1.11.0 | Master Branch |1.21.4 | 7.4.27 | 3.12 |
|
||||
|
||||
|
||||
_Note:_ The image is now aviable on x86_64 and Arm systems!
|
||||
@@ -18,8 +17,8 @@ _Note:_ The image is now aviable on x86_64 and Arm systems!
|
||||
For other tags please see: [versioning](https://gitlab.com/ric_harvey/nginx-php-fpm/blob/master/docs/versioning.md)
|
||||
|
||||
### Links
|
||||
- [https://gitlab.com/ric_harvey/nginx-php-fpm](https://gitlab.com/ric_harvey/nginx-php-fpm)
|
||||
- [https://hub.docker.com/repository/docker/richarvey/nginx-php-fpm](https://hub.docker.com/repository/docker/richarvey/nginx-php-fpm)
|
||||
- [https://git.schultes.dev/gregor/nginx-php-fpm](https://git.schultes.dev/gregor/nginx-php-fpm)
|
||||
- [https://hub.docker.com/r/gschulte/nginx-php-fpm](https://hub.docker.com/r/gschulte/nginx-php-fpm)
|
||||
|
||||
## Quick Start
|
||||
To pull from docker hub:
|
||||
|
||||
2
build.sh
2
build.sh
@@ -9,5 +9,5 @@ docker buildx create --name phpbuilder
|
||||
docker buildx use phpbuilder
|
||||
|
||||
echo "Building: PHP Container"
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -t "gschulte/nginx-php-fpm:php8-${VERSION}" --push .
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -t "gschulte/nginx-php-fpm:${VERSION}" -t gschulte/nginx-php-fpm:latest --push .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user