A docker compose how prepare an environement for your laravel application
To use it you need to:
- install docker & docker compose
(find the version of your OS)
(i recomande to change the ip address and the password for mariadb) - copy the files in the directory of your choice
- start the commandes : docker-compose build && docker-compose up -d
- copy files of your laravel in .src/ or go in the php container and start install a new laravel project like this :
- "docker exec php php /var/www/html composer global require laravel/installer" or you can go in your container like so
- "docker exec -it php /bin/sh" you will be in the container
- and after that you can execute "composer global require laravel/installer" or "php artisan" commands
- change the .env file and add address and the username/password/dbname (that you made in the docker-compose)
- run "php artisan migrate" and you are done !!
PS : sorry for my englich i will make another readme file