NGINX Web with php-fpm5 Image based on Alpine.
263
This is my minimal customized nginx+php-fpm5 image on Alpine (with my alpine image). No root process. The start.sh script will check the nginx configuration, start php-fpm5, follow to the stdout access / error logs and finally launch nginx.
• Packages from khirin/alpine • nginx • php5-fpm • php5-pdo_odbc • php5-pdo • php5-mysql • php5-pdo_mysql • php5-pdo_dblib • php5-curl
• Configuration from khirin/alpine • Default user (UID) : nginx (2000) • Default group (GID) : nginx (2000) • Default ports : 11080 11443
• /scripts (RO) : Start script. • /conf (RO) : Virtual hosts configuration files for nginx. • /web (RW) : Where all web folders are stored.
• Run : Will use the default configuration above. • Build : Example of custom build. You can also directly modify the Dockerfile (I won't be mad, promis !) • Create : Example of custom create.
docker run --detach \
-v "/my_script_folder:/scripts:ro" \
-v "/my_conf_folder:/conf:ro" \
-v "/my_web_folder:/web:rw" \
-p 80:11080 -p 443:11443 \
khirin/nginx-web
docker build --no-cache=true \
--force-rm \
--build-arg UID="2000" \
--build-arg GID="2000" \
--build-arg PORT="11080 11443"
-t repo/nginx-web .
docker create --hostname=nginx-web \
-v "/my_script_folder:/scripts:ro" \
-v "/my_conf_folder:/conf:ro" \
-v "/my_web_folder:/web:rw" \
-p 80:11080 -p 443:11443 \
--name nginx-web \
repo/nginx-web
khirin : DockerHub, GitHub
All my images are based on my personal knowledge and inspired by many projects of the Docker community. If you recognize yourself in some working approaches, you might be one of my inspirations (Thanks!).
Content type
Image
Digest
Size
15.7 MB
Last updated
over 9 years ago
docker pull khirin/nginx-web