Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.43 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.43 KB

OpenShift template for nginx and php-fpm

‼️ Moved to https://gitlab.com/rybnico/openshift-nginx-php-fpm ‼️

This template creates OpenShift resources for nginx with php-fpm

  • DeploymentConfig for a pod with nginx and php-fpm
  • BuiltConfig and ImageStream for php-fpm (to be able to customize the php-fpm version and include custom PHP modules)
  • ConfigMap for nginx configuration
  • Service for the nginx-php-fpm Pod
  • PersistentVolumeClaim for the webroot volume

Getting Started

You can import the template to your OpenShift cluster

oc create -f https://raw.githubusercontent.com/rybnico/openshift-nginx-php-fpm/master/nginx-php-fpm-template.yaml

or process it directly

oc process -f https://raw.githubusercontent.com/rybnico/openshift-nginx-php-fpm/master/nginx-php-fpm-template.yaml APP_NAME=my-fancy-app NGINX_IMAGE=nginx:stable PHP_FPM_IMAGE=php:7.2-fpm WEBROOT_SIZE=512Mi | oc create -f -

Customize the php-fpm build according to your needs and start a build for the newly created BuildConfig to start a deployment.

Uninstall

Delete all resources with label app=my-fancy-app and delete the PVC

oc delete all -l app=my-fancy-app
oc delete pvc my-fancy-app-webroot

Built With