cloudmanic / docker-nginx-php

Nginx and PHP built into the same image, run as non-root user.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cloudmanic/nginx-php

Nginx and PHP built into the same image, run as non-root user.

Full Repo: https://github.com/cloudmanic/docker-nginx-php

A few goals for this docker image:

  • Run the entire image as a local user, not as root. Hence Nginx runs on port 8080
  • Bundle PHP into the image.

Image Versions

Example Docker Compose

version: "3"

services:
  web:
    image: cloudmanic/nginx-php:7.2

    user: "501:20"

    ports:
      - "80:8080"

    volumes:
      - ./:/www
      - ./web:/www/public

About

Nginx and PHP built into the same image, run as non-root user.


Languages

Language:Dockerfile 92.7%Language:PHP 6.5%Language:Shell 0.8%