Skip to content

w3roman/docker-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • MARIADB
  • PHP-FPM+CRON
    • UNZIP
    • EXTENSIONS:
      • exif
      • intl
      • pdo_mysql
      • xdebug
      • zip
    • COMPOSER
  • NGINX
  • NODE
    • NPM
      • sass-embedded
  • LARAVEL
    • barryvdh/laravel-debugbar
    • barryvdh/laravel-ide-helper
  • HTTPS

You can set environment variables in the .env file


Initialization

1. Install mkcert and generate a local CA (Certificate Authority):

mkcert -install

image

  • Firefox: about:preferences#privacy

image

  • Chrome/Chromium: chrome://certificate-manager/localcerts/platformcerts

image

2. Clone the project and initialize it:

git clone https://github.com/w3roman/docker-laravel.git laravel && \
cd laravel && \
make i # make init

Once 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 master

3. Open https://localhost:900 (default HTTPS port is 900, see .env file).

For access with a domain zone:

  • Change APP_URL to https://localhost.localhost:${_NGINX_PORT_HTTPS} in app/.env.
  • Open https://localhost.localhost:${_NGINX_PORT_HTTPS}.

Development with Firefox

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

image

image

image

Start / Restart

make start # make s

xDebug settings

PhpStorm

xDebug settings | PhpStorm

About

MARIADB, PHP-FPM+CRON, NGINX, NODE, LARAVEL, HTTPS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published