Sign inSign up

bananabb/phpnpm

By bananabb

•Updated almost 2 years ago

For php and npm running

Image
Web servers
0

575

bananabb/phpnpm repository overview

⁠phpnpm

This repository contains Dockerfile of nginx, php and npm in ubuntu.

⁠Getting Started

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.

⁠Installation
  1. Install Docker⁠.
  2. Download automated build⁠ from public Docker Hub⁠ or run Usage tag provided.
  3. Default working directory located in /var/www/html, you can setup specifically
  4. Finally, to verify the php and nginx is ready as expected, open http://your_server_ip:8080/info.php or http://your_server_ip:8080 in your browser of choice, after running up the Usage.
  5. The verify will be depended on your work. If you use volumes (e.g: docker run -itd --name php -v {your directory}:/var/www/html -p 8080:80 bananabb/phpnpm) to bind mount your working directory.
⁠Usage
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
node -v
npm --version
⁠Restart Services (If you need)
/etc/init.d/nginx reload
/etc/init.d/php8.3-fpm restart
⁠Create Laravel project
  1. Run command as /laravel.sh in docker container
  2. Enter your project name
  3. Enter your export port (Please sync with docker export port)
  4. The project is located on /var/www/html

⁠License

MIT © BananaBb⁠

Tag summary

Content type

Image

Digest

sha256:7011845c0…

Size

604.2 MB

Last updated

almost 2 years ago

docker pull bananabb/phpnpm