Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alombarte/nginx-php-fpm
Dockererized Nginx with PHP FPM
https://github.com/alombarte/nginx-php-fpm
Last synced: about 1 month ago
JSON representation
Dockererized Nginx with PHP FPM
- Host: GitHub
- URL: https://github.com/alombarte/nginx-php-fpm
- Owner: alombarte
- Created: 2016-02-12T10:24:47.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-12T10:26:32.000Z (almost 9 years ago)
- Last Synced: 2023-03-24T08:07:47.288Z (over 1 year ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockerized PHP-fpm + Nginx
Build:
docker build -t alombarte/nginx-php-fpm .
Run:
# Pull and run official PHP fpm image:
docker run -d --name php-fpm -v $PWD/example:/var/www/app php:fpm
# Run this image:
docker run -d --name nginx-php -v $PWD/example:/var/www/html --link "php-fpm" -p 8080:80 alombarte/nginx-php-fpm
# Same changing port and host:
docker run -d --name nginx-php -v $PWD/example:/var/www/html --link "php-fpm" -p 8080:80 -e "APP_HOST=php-fpm" -e "APP_PORT=9000" alombarte/nginx-php-fpmAccess your containers:
docker exec -it php-fpm bash
docker exec -it nginx-php bash