-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6798474
commit b96393e
Showing
15 changed files
with
71 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ LABEL Maintainer="Ionut Grecu <[email protected]>" \ | |
Description="Lightweight container with Nginx 1.18 & PHP-FPM 7.4 based on Alpine Linux. Fork from https://hub.docker.com/r/trafex/alpine-nginx-php7/dockerfile and inspired from https://hub.docker.com/r/lorisleiva/laravel-docker/dockerfile" | ||
|
||
# Install packages and remove default server definitionzip | ||
RUN apk --no-cache add openssl util-linux php7 php7-fpm php7-opcache php7-mysqli php7-json php7-memcached php7-openssl php7-common php7-curl php-pdo php-pdo_mysql \ | ||
php7-zlib php7-xml php7-phar php7-intl php7-dom php7-xmlreader php7-ctype php7-session php7-zip php7-bcmath \ | ||
php7-mbstring php7-gd php7-calendar php7-exif php7-iconv php7-pcntl php7-tokenizer php7-fileinfo \ | ||
RUN apk --no-cache add openssl util-linux php8 php8-fpm php8-opcache php8-mysqli php8-json php8-pecl-memcached php8-openssl php8-common php8-curl php8-pdo php8-pdo_mysql \ | ||
php8-zlib php8-xml php8-phar php8-intl php8-dom php8-xmlreader php8-ctype php8-session php8-zip php8-bcmath \ | ||
php8-mbstring php8-gd php8-calendar php8-exif php8-iconv php8-pcntl php8-tokenizer php8-fileinfo \ | ||
nginx composer yarn git supervisor curl nano sudo && \ | ||
rm /etc/nginx/conf.d/default.conf | ||
|
||
|
@@ -17,12 +17,12 @@ COPY config/nginx.conf /etc/nginx/nginx.conf | |
RUN chmod 0755 /etc/nginx/nginx.conf | ||
|
||
# Configure PHP-FPM | ||
COPY config/fpm-pool.conf /etc/php7/php-fpm.d/www.conf | ||
RUN chmod 0755 /etc/php7/php-fpm.d/www.conf | ||
COPY config/php.ini /etc/php7/conf.d/custom.ini | ||
RUN chmod 0755 /etc/php7/conf.d/custom.ini | ||
COPY config/20-opcache.ini /etc/php7/conf.d/20-opcache.ini | ||
RUN chmod 0755 /etc/php7/conf.d/20-opcache.ini | ||
COPY config/fpm-pool.conf /etc/php8/php-fpm.d/www.conf | ||
RUN chmod 0755 /etc/php8/php-fpm.d/www.conf | ||
COPY config/php.ini /etc/php8/conf.d/custom.ini | ||
RUN chmod 0755 /etc/php8/conf.d/custom.ini | ||
COPY config/20-opcache.ini /etc/php8/conf.d/20-opcache.ini | ||
RUN chmod 0755 /etc/php8/conf.d/20-opcache.ini | ||
|
||
# Configure supervisord | ||
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,13 +16,13 @@ Repository: https://[email protected]/websea/wd-php7-laravel.git | |
|
||
## Build | ||
|
||
docker build -t iq-php7-laravel | ||
docker build -t iq-php8-laravel | ||
|
||
## Usage | ||
|
||
Start the Docker container: | ||
|
||
docker run -p 10000:8080 iq-php7-laravel | ||
docker run -p 10000:8080 iq-php8-laravel | ||
|
||
See the PHP info on http://localhost:10000, or the static html page on http://localhost/test.html | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.