Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/torniker/phpfpm
From php:5.6.8-fpm included libraries: iconv, mcrypt, mbstring, gd
https://github.com/torniker/phpfpm
Last synced: 24 days ago
JSON representation
From php:5.6.8-fpm included libraries: iconv, mcrypt, mbstring, gd
- Host: GitHub
- URL: https://github.com/torniker/phpfpm
- Owner: torniker
- Created: 2015-05-13T10:56:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-22T16:19:03.000Z (over 8 years ago)
- Last Synced: 2023-04-01T01:55:32.500Z (over 1 year ago)
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Docker From php:7.0.1-fpm
Added libraries:
* mcrypt
* mbstring
* mysql
* mysqli
* pdo_mysql
* ftp
* xmlrpc
* zip# Docker compose usage
Add to your docker-compose.yml file following:
```
phpfpm:
command: php-fpm --allow-to-run-as-root
image: torniker/phpfpm-7.0
volumes:
- /path/to/fpm.conf:/usr/local/etc/php-fpm.conf
- /path/to/php.ini:/usr/local/etc/php/php.ini
- /path/to/prject:/var/www/html
privileged: true
```Create fpm.conf and php.ini file in the path you have specified in docker-compose.yml
Samples for fpm.conf and php.ini:
* php.ini - [https://gist.github.com/torniker/27472db39a623fe95a2c](https://gist.github.com/torniker/27472db39a623fe95a2c)
* fpm.conf - [https://gist.github.com/torniker/e5192a3e42b4d72092ca](https://gist.github.com/torniker/e5192a3e42b4d72092ca)# Configuring nginx docker to work with phpfmp
Add following to your docker-compose.yml:
```
nginx:
image: nginx:1.9.0
volumes:
- /path/to/nginx.conf:/etc/nginx/conf.d/default.conf
- /path/to/prject:/var/www
ports:
- "80:80"
links:
- phpfpm
```Create nginx.conf in the path specified in docker-compose.yml
example nginx.conf - [https://gist.github.com/torniker/d09db27177e158568a51](https://gist.github.com/torniker/d09db27177e158568a51)