Skip to content

simplon-lyon/promo5-symfony-intro

Repository files navigation

Symfony docker skeleton

Quick start

  1. composer install
  2. docker-compose up
  3. go to http:https://localhost:8080

App documentation

Checkout e-commerce's app documentation here

Database settings

You can connect to MySQL with a client (like MySQL Workbench) with these settings :

  • user : root
  • password : root
  • host : 127.0.0.1
  • port : 8083

A default database called db is created on first mariadb container startup.

Doctrine/Database related commands

To make these commands working, you have to run them INSIDE php-fpm container :

doctrine:database:create which is not needed, as database already exists :

docker-compose exec php-fpm sh -c "php bin/console doctrine:database:create"

make:migration :

docker-compose exec php-fpm sh -c "php bin/console make:migration"

doctrine:migrations:migrate :

docker-compose exec php-fpm sh -c "php bin/console doctrine:migrations:migrate"

general purpose :

docker-compose exec php-fpm sh -c "php bin/console <YOUR COMMAND GOES HERE>"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages