Skip to content

A generic nginx php-fpm container for hosting PHP web sites

Notifications You must be signed in to change notification settings

bwdutton/nginx-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A generic nginx and php-fpm container to host PHP web sites.

Create an html directory inside of the directory you want to mount, e.g.:

mkdir -p containers/myapp/html
echo '<?php echo 'hello'; ?>' > containers/myapp/html/index.php

Below is a sample docker compose configuration. I recommend running traefik if you want the app to run under SSL or host multiple apps on the same server.

version: '3.5'
services:
  myapp:
    image: bwdutton/nginx-php
    volumes:
      - ./containers/myapp:/var/www
    ports:
      - "80:80"

About

A generic nginx php-fpm container for hosting PHP web sites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages