- php-fpm
- Node.js
- MySQL
- Nginx
- Clone this repository.
$ git clone https://github.com/kawaus03/docker-laravel-vue.git
- Clone the Laravel and Vuejs project in the
src
dir.
$ cd docker-laravel-vue/src
$ git clone https://github.com/kawaus03/laravel-sanctum.git
$ git clone https://github.com/kawaus03/vue-sanctum.git
- Running the initial installation.
$ cd docker-laravel-vue
$ make init
- Install and compile npm packages in running docker container.
$ cd docker-laravel-vue
$ make node
$ yarn install
$ yarn dev
- Append to the
/etc/hosts
file.
127.0.0.1 docker-laravel-vue.work
127.0.0.1 api.docker-laravel-vue.work
- Access to Laravel and Vuejs project.
-
Laravel project
-
Vuejs project