PHP stack multi sites under Docker
- PHP-FPM 7.1 (composer)
- NGINX 1.13
- MySQL 5.7
- Maildev
- PhpMyAdmin
- Add your nginx configuration for different sites under sites directory, check the example example.site.conf
- Execute the
domain.sh
to update your /etc/hosts
- To deal with permission between shared volumes with host and guest, you must run
$ source user-permission.sh
- Run docker-compose.yml
$ docker-compose up -d
- Open your browser to http://example.mysite (or another configured domain name)
- 8080:80 NGINX (172.45.0.10)
- 1080:80 Maildev front web
- 1025:25 Maildev smtp
- 8888:80 PhpMyAdmin