Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)