Sign inSign up

oauthq/nginx-php

By oauthq

•Updated over 6 years ago

Container running Nginx + PHP-FPM docker/nginx-php-fpm php7.2

Image
0

1.1K

oauthq/nginx-php repository overview

⁠Overview

Ubuntu 18.04 Linux Docker image with nginx ,php-fpm, composer ,nodejs, git exposed installed

⁠Quick Start

To pull from docker hub:

docker pull oauthq/nginx-php:latest

EXPOSE 80

default nginx config [nginx.conf]

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
include /home/nginx_conf/*.conf;

you can mount volumes /data/home/nginx_conf:/home/nginx_conf
⁠Running

To simply run the container:

sudo docker run -d oauthq/php-nginx
⁠script
CMD ["/bin/bash", "/run.sh"]
  • run.sh
#!/bin/bash
chown www-data.www-data /www -R
chmod 777 -R /home
cron
php-fpm7.2
nginx -g "daemon off;"

You can then browse to http://<DOCKER_HOST> to view the default install files. To find your DOCKER_HOST use the docker inspect to get the IP address (normally 172.17.0.2)

⁠Status

Production ready and stable.

⁠Website

Tag summary

Content type

Image

Digest

Size

219.6 MB

Last updated

over 6 years ago

docker pull oauthq/nginx-php