Setup php environment with packages and composer
1.3K
This repository contains Dockerfile of nginx, php in ubuntu.
These instructions will get you to build php service with nginx in your docker. See Installation for notes on how to build your ubuntu on a live system.
http://your_server_ip:8080/info.php or http://your_server_ip:8080 in your browser of choice, after running up the Usage.docker run -itd --name php -v {your directory}:/var/www/html -p 8080:80 bananabb/php) to bind mount your working directory.docker pull bananabb/php:latest
docker run -itd --name php -p 8080:80 bananabb/php
docker exec -it php /bin/bash
nginx -t
php -v
composer -V
/etc/init.d/nginx reload
/etc/init.d/php8.3-fpm restart
/laravel.sh in docker containerdocker-compose.yml attached, please change your content)Config Settingphp sendEmail.php# Enter to php Container
# Find `sendmail_path` and change as below in file `/etc/php/8.3/cli/php.ini`
sendmail_path="/usr/local/bin/mhsendmail --smtp-addr=mailhog:1025"
MIT © BananaBb
Content type
Image
Digest
sha256:d4328e5f4…
Size
536.8 MB
Last updated
almost 2 years ago
docker pull bananabb/php