- Nginx
- PHP 7.2-fpm or 7.3-fpm
- MySQL
- PHPMyAdmin
- Maildev
- Install and launch Docker
cp .env.dist .env
docker-compose up
Service | Path |
---|---|
Website | https://localhost:8080 |
PhpMyAdmin | https://localhost:8081 |
Mail catcher | https://localhost:8082 |
Logs | log/ |
https://github.com/atillay/docker-images/tree/master/lemp
- On your machine, run
$ sudo nano /etc/hosts
and add127.0.0.1 myhost.local
- Change the server name in
docker/nginx/nginx.conf#L3
tomyhost.local
- Modify
.env
and setSERVER_PORT=80
- Run
$ docker-compose up
- If it fails make sure no service like Apache is running on port 80
If you change mysql credentials in .env you have to re-create mysql container:
- Database will be deleted, make a dump with PhpMyAdmin
- Remove db folder :
$ rm -rf docker/db
- Run :
docker-compose up
- Re-import your database on PhpMyAdmin