Skip to content

Symfony base adds admin user, security, fixture, bootstrap.

Notifications You must be signed in to change notification settings

gonzaloalonsod/symfony_base

Repository files navigation

Symfony Base V. 5.2.*

Symfony base adds admin user, security, fixture, bootstrap.

Installation

Open a command console, enter your project directory and execute:

git clone https://github.com/gonzaloalonsod/symfony_base.git
cd symfony_base
composer install
composer dump-env prod
# cp .env .env.local

Configure .env.local:

  • SUPER_EMAIL=
  • SUPER_PASSWORD=
symfony console doc:data:create
symfony console doc:sche:create
symfony console doc:fix:load

Docker compose

* Start containers in the background: `docker-compose up -d`
* Start containers on the foreground: `docker-compose up`. You will see a stream of logs for every container running.
* Stop containers: `docker-compose stop`
* Kill containers: `docker-compose kill`
* View container logs: `docker-compose logs`
* Execute command inside of container: `docker-compose exec SERVICE_NAME COMMAND` where `COMMAND` is whatever you want to run. Examples:
    * Shell into the PHP container, `docker exec -it symfony-php-fpm bash`
    * Run symfony console, `docker exec symfony-php-fpm bin/console`
    * Open a mysql shell, `docker exec symfony-mariadb mysql -uroot -pCHOSEN_ROOT_PASSWORD`

Docker url

* http://127.0.0.1:8080

Use

Author

Contributors