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.db
which is the MySQL database container with a MySQL 8.0 image.
-
😀 Clone this repo.
-
Create the file
./.docker/.env.nginx.local
using./.docker/.env.nginx
as template. The value of the variableNGINX_BACKEND_DOMAIN
is theserver_name
used 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
./docker
and rundocker compose up -d
to start containers. -
Inside the
php
container, runcomposer install
to install dependencies from/var/www/symfony
folder. -
Then, run Doctrine Migrations to populate the database:
php bin/console doctrine:migrations:migrate -n