Final degree project of the higher degree course of Web Application Development.
Install Laradock.
git clone https://github.com/Laradock/laradock.git
Install Doccloud.
git clone https://github.com/apozo93/DocCloud.git
Up necessary containers.
cd laradock
docker-compose up nginx mysql workspace
Configure Database. Enter in mysql container.
docker exec -it laradock_mysql_1 mysql -u root -p
The default root password in laradock is 'root'.
Create user. Give user privileges on doocloud database.
CREATE DATABASE doccloud;
CREATE USER 'user'@'localhost' IDENTIFIED BY 'secret';
GRANT ALL PRIVILEGES ON doccloud.* TO 'user'@'localhost' WITH GRANT OPTION;
Add servername to your host file /etc/hosts.
127.0.0.1 doccloud.com;
Add .conf file to nginx.
cd laradock/nginx/sites/
cp laravel.conf.example doccloud.conf
Edit doccloud.conf and replace the following lines
server_name doccloud.com www.doccloud.com;
root /var/www/doccloud/public;
Restart containers in laradock root directory.
docker-compose stop;
docker-compose up nginx mysql workspace;
Go inside workspace
docker-compose exec --user=laradock workspace bash
cd doccloud
cp env-example .env
php artisan migrate:fresh --seed
- Alfonso Pozo - Initial work apozo93 https://www.linkedin.com/in/alfonso-pozo/