Container running Nginx + PHP-FPM docker/nginx-php-fpm php7.2
1.1K
Ubuntu 18.04 Linux Docker image with nginx ,php-fpm, composer ,nodejs, git exposed installed
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
To simply run the container:
sudo docker run -d oauthq/php-nginx
CMD ["/bin/bash", "/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)
Production ready and stable.
Content type
Image
Digest
Size
219.6 MB
Last updated
over 6 years ago
docker pull oauthq/nginx-php