mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-01 22:55:39 +00:00
add nginx-php image
This commit is contained in:
2
nginx-php/rootfs/etc/s6.d/.s6-svscan/finish
Normal file
2
nginx-php/rootfs/etc/s6.d/.s6-svscan/finish
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exit 0
|
6
nginx-php/rootfs/etc/s6.d/nginx/run
Normal file
6
nginx-php/rootfs/etc/s6.d/nginx/run
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
if test -f ./setup; then
|
||||
source ./setup
|
||||
fi
|
||||
|
||||
exec nginx
|
4
nginx-php/rootfs/etc/s6.d/nginx/setup
Normal file
4
nginx-php/rootfs/etc/s6.d/nginx/setup
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
mkdir -p /nginx/logs /nginx/run
|
||||
chown -R $UID:$GID /nginx
|
||||
sed -i 's/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE/g' /nginx/conf/nginx.conf
|
6
nginx-php/rootfs/etc/s6.d/php/run
Normal file
6
nginx-php/rootfs/etc/s6.d/php/run
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
if test -f ./setup; then
|
||||
source ./setup
|
||||
fi
|
||||
|
||||
exec php-fpm
|
8
nginx-php/rootfs/etc/s6.d/php/setup
Normal file
8
nginx-php/rootfs/etc/s6.d/php/setup
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
mkdir -p /php/php-fpm.d /php/logs /php/run
|
||||
|
||||
sed -i -e 's/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE' \
|
||||
-e 's/<MEMORY_LIMIT>/$PHP_MEMORY_LIMIT' \
|
||||
/usr/local/etc/php-fpm.conf
|
||||
|
||||
chown -R $UID:GID /php /usr/local/etc/php-fpm.conf
|
Reference in New Issue
Block a user