Docker boilerplate with traefik 2, laravel 8, vue-cli and doodle components
Works with:
node 11.10.1
npm 6.14.5
sass 1.26.11
Results in:
traefik 2.2.1
php 7.3
mysql 8
laravel v8
vuejs 3.12.1
babel 7
so no https.
git clone
git clone git@github.com:bespired/doodle.git doodle
install laravel
cd doodle
cp laravel/.env.example laravel/.env
install vuecli
If you want to change the backend
cd vuecli
npm install
cd ..
install draggr
If you want to change the frontend js and css
cd compile
npm install
cd ..
And install sass globally if you didn't already have sass
npm install -g sass
On mac make sure de doodle folder is in the shared files.
Build the server
docker-compose build
(only needed the first time you start the server)
Start the php server for laravel install
docker-compose up doodle_php -d
Use php version 7.3 in container to install Laravel 8
docker/doexec doodle_php composer install
docker/doexec doodle_php php artisan key:generate
docker/doexec doodle_php php artisan jwt:secret
docker-compose stop
Start the full system
docker-compose up -d
docker/ps
CONTAINER NAMES IMAGE
e428d8bd5xxx: traefik traefik:v2.2
6b65d00a7xxx: doodle_api nginx:alpine
f07a2c093xxx: doodle_php draggr_doodle_php
434a009eexxx: doodle_vuejs draggr_doodle_vuejs
13d08027exxx: doodle_mysql mysql:8
64dfa0c56xxx: doodle_redis redis:alpine
view
Traefik:
http://localhost:9090/dashboard/#/
Laravel welcome:
http://localhost/_
Create default admin login
docker/doexec doodle_php php artisan doodle:create:admin
Doodle design:
http://localhost/admin/doodledesign/welcome
develop doodle
Develop doodle with:
cd doodle/vuecli
npm run serve
http://localhost:8020/admin
develop draggr js
cd doodle/compile
npm run watch
Compiles frontend js to the public folder of laravel
develop draggr css
cd doodle/compile
npm run sass
Compiles frontend css to the public folder of laravel
artisan commands
docker/doexec doodle_php php artisan command
example:
docker/doexec doodle_php php artisan --version
Doodle welcome:
http://localhost/admin
frontend welcome:
http://localhost/page