Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 1.54 KB

README.md

File metadata and controls

53 lines (41 loc) · 1.54 KB

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