Skip to content

Romeoy/docker-rocky-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-rocky-php

About

Rockylinux + Nginx + PHP-FPM Docker image by Romeoy

Version

Rockylinux: 9+

Nginx: 1.20+ (the latest version in Rockylinux base repo)

PHP: 8.3 (can be configured from 7.4 ~ 8.4)

Usage

Building image:

docker build -t rocky-nginx-php:0.1 --rm .

or overwrite the ENV arg to make Chinese developer use perfectly.

docker build --build-arg ENV=dev -t rocky-nginx-php:0.1 --rm .

Run the Docker container:

docker run -itd --name rocky-php -p 8080:80 rocky-nginx-php:0.1

Handy Paths

  • nginx include: /etc/nginx/conf.d/*/*.conf
  • nginx vhost root: /var/www/default/public/
  • nginx logs: /var/log/nginx/

Ideally the above ones should be mounted from docker host and container nginx configuration (see vhost.conf for example), site files and place to right logs to.

Both php-fpm and nginx run under nobody inside the container

Exposes port 80 for nginx.

Thanks

alleotech/docker-nginx-php-fpm

About

dockerfile with nginx & php-fpm based on rockylinux

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages