This a base for Debricked's backend home task. It provides a Symfony skeleton and a Docker environment with a few handy services:
- RabbitMQ
- MySQL (available locally at 3307, between Docker services at 3306)
- MailHog (UI available locally at 8025)
- PHP
- Nginx (available locally at 8888, your API endpoints will accessible through here)
See .env for working credentials for RabbitMQ, MySQL and MailHog.
A few notes:
- By default, emails sent through Symfony Mailer will be sent to MailHog, regardless of recipient.
docker compose up
docker compose down
You can access the PHP environment's shell by executing docker compose exec php bash
(make sure the environment is up
and running before, or the command will fail) in root folder.
We recommend that you always use the PHP container's shell whenever you execute PHP, such as when installing and requiring new composer dependencies.