- MARIADB
- PHP-FPM+CRON
- UNZIP
- EXTENSIONS:
- exif
- intl
- pdo_mysql
- xdebug
- zip
- COMPOSER
- NGINX
- NODE
- NPM
- sass-embedded
- NPM
- LARAVEL
- barryvdh/laravel-debugbar
- barryvdh/laravel-ide-helper
- HTTPS
You can set environment variables in the
.envfile
1. Install mkcert and generate a local CA (Certificate Authority):
mkcert -install- Firefox:
about:preferences#privacy
- Chrome/Chromium:
chrome://certificate-manager/localcerts/platformcerts
2. Clone the project and initialize it:
git clone https://github.com/w3roman/docker-laravel.git laravel && \
cd laravel && \
make i # make initOnce the project starts, the .git directory will be removed, and a new repository will be created.
Now you can add your origin, make a commit and push it to the remote repository:
git remote add origin [email protected]:<user>/<repo>
git add .
git commit -m 'initial commit'
git push -u origin master3. Open https://localhost:900 (default HTTPS port is 900, see .env file).
For access with a domain zone:
- Change
APP_URLtohttps://localhost.localhost:${_NGINX_PORT_HTTPS}inapp/.env. - Open
https://localhost.localhost:${_NGINX_PORT_HTTPS}.
During development, when we run npm run dev:
"scripts": {
"build": "vite build",
"dev": "vite --host --port=${VITE_PORT}"
}the following errors occur in Firefox:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://[::]:51730/@vite/client...
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://[::]:51730/resources/js/app.js...
To fix them, you need to add the server https://[::]:51730 to an exception.
about:preferences#privacy
make start # make s





