Galerie photo collaborative sous forme de timeline
- Clone laradock
git submodule update --init laradock/
- Copy Laravel configuration file
cp .env.example .env
- [Laradock] Copy laradock configuration file
cp .env.example .env
- Change these infos in the .env
COMPOSE_PROJECT_NAME=timelife
PHP_VERSION=7.4
...
PHP_FPM_INSTALL_EXIF=true
...
MYSQL_DATABASE=timelife
MYSQL_USER=homestead
MYSQL_PASSWORD=secret
...
NGINX_HOST_HTTP_PORT=8000
- [Laradock] Run the docker container
docker-compose up -d nginx mysql workspace
- [Laradock] Enter the workspace
docker-compose exec workspace bash
- Install packages
# For php
composer install
# For JS
npm install- Generate an App key
php artisan key:generate- [Optional] If you already have used Laradock on you computer.
- Enter the
mysqldocker container :docker-compose exec mysql bash - connect to mysql with
mysql -u root -p. Password :root - Execute these command two command to create the database :
CREATE DATABASE IF NOT EXISTS `timelife` COLLATE 'utf8_general_ci' ;
GRANT ALL ON `timelife`.* TO 'homestead'@'%' ;- ???
- Profit