This is a simple Laravel/Vue 3 project, utilizing VScode's devcontainer features.
Requirements:
-
Generate self-signed SSL certs for nginx and place them in /docker/nginx/ssl/
openssl genrsa -out nginx.key 2048
openssl req -new -x509 -key nginx.key -out nginx.crt
-
Copy .env.example to .env
-
Open in VScode, install the devcontainers extension and use the "Reopen in Container" command.
When presented with the terminal, run:
composer install
php artisan key:generate
php artisan migrate --seed
-
Make an exception for Vite's self-signed SSL certs by visiting
https://[::]:5173/@vite/client
in your browser. After that, the website should be available athttps://localhost
. -
If you would like to login, you can use the following email/password:
password
Alternatively, if you are already familiar with docker you can use the docker-compose file and configure the project how you like.
Also note that using Docker Desktop is not recommended, as it has many inconsistencies between host platforms and it raises configuration issues.
For more information, please see the Overview page for VS Code Dev Containers.