Docker Images

From ElectroDragon
Jump to navigation Jump to search

PHP

  • FROM php:7.1-fpm
  • FROM php:7.4-cli

PHP Image Variants

Wordpress

  • 5.4.1-php7.4-fpm

PHP+NGINX

webdevops/php-nginx

  • docker run --name kk -d -p 80:80 -v webdevops/php-nginx
  • work folder /app

Nginx

https://hub.docker.com/_/nginx

Dockerfile

web:
  image: nginx
  volumes:
   - ./mysite.template:/etc/nginx/conf.d/mysite.template
  ports:
   - "8080:80"
  environment:
   - NGINX_HOST=foobar.com
   - NGINX_PORT=80