Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/aiiddqd/php.local

Simple docker composition for php/nginx with Makefile
https://github.com/aiiddqd/php.local

docker docker-compose makefile nginx php7

Last synced: about 7 hours ago
JSON representation

Simple docker composition for php/nginx with Makefile

Awesome Lists containing this project

README

        

# Simple docker composition for php/nginx

- url: http://php.local/
- chg /etc/hosts:
```
127.0.0.1 php.local
```

# Makefile commands
- `make up` - start app
- `make log` - display log from docker
- `make stop`
- `make restart`

# Snippets

## php composer setup
```
docker-compose run php-fpm composer install
```

## php app shell
```
docker exec -ti php-fpm /bin/bash
```

# Source

based on manual http://geekyplatypus.com/dockerise-your-php-application-with-nginx-and-php7-fpm/