sendya / docker-php-nginx

Dockerized php & nginx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dockerized PHP & Nginx

PHP(fpm): 7.4.33 Nginx: nginx/1.20.2


webroot: /var/www/html/
nginx-conf: /etc/nginx/conf.d/ default.conf

Build Image

$ docker buildx build --platform=linux/arm64 -t php-fpm:7.4.33 . --no-cache

docker-compose

version: "3"

services:
  myweb:
    image: php-fpm:7.4.33
    container_name: myweb
    ports:
      - 8080:8080
    volumes:
      - ./www:/var/www/html
      - ./nginx-conf:/etc/nginx/conf.d
    restart: always

About

Dockerized php & nginx

License:MIT License


Languages

Language:Dockerfile 92.4%Language:Shell 6.6%Language:PHP 1.0%