Local development stack containing PHP, MySQL, NGINX and MailHog
docker-compose up -d
.env.dist
contains a list of variables which can be adjusted to your specific needs.
Copy you local changes to .env
and adjust accordingly.
Some variable changes require extra steps before they take effect.
In order to update the PHP version, the container should be rebuilt.
docker-compose up -d --build php
Some changes, like a version downgrade, require the storage to be reset.
!! This will erase the persisted data, handle with care !!
docker-compose down -v
Changes to the php.ini
file require the PHP container to be rebuilt.
docker-compose up -d --build php
MailHog contains an SMTP server which captures all outgoing mail.
SMTP: mailhog:1025
UI: localhost:8025
docker-compose exec php composer <command>