Open a command console, enter your project directory and execute:
git clone https://github.com/gonzaloalonsod/symfony_deploy.git
cd symfony_deploy
composer install
cp .env .env.local
- SUPER_EMAIL=
- SUPER_PASSWORD=
symfony console doc:data:create
symfony console doc:sche:create
symfony console doc:fix:load
* 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`
Gonzalo Alonso - [email protected]