This is a testing project with the purpose of showcase some practical use cases for using Symfony Workflow Bundle into our projects.
nginx, as reverse proxy server.php, the PHP-FPM container with the 8.2 version of PHP.dbwhich is the MySQL database container with a MySQL 8.0 image.
-
😀 Clone this repo.
-
Create the file
./.docker/.env.nginx.localusing./.docker/.env.nginxas template. The value of the variableNGINX_BACKEND_DOMAINis theserver_nameused in NGINX. -
Use the following value for the DATABASE_URL environment variable:
DATABASE_URL=mysql://app_user:helloworld@db:3306/app_db?serverVersion=8.0.33&charset=utf8mb4
-
Go inside folder
./dockerand rundocker compose up -dto start containers. -
Inside the
phpcontainer, runcomposer installto install dependencies from/var/www/symfonyfolder. -
Then, run Doctrine Migrations to populate the database:
php bin/console doctrine:migrations:migrate -n