- Nginx (front server)
- App (php-fpm laravel server)
- Mysql (db)
- Redis
- OpenAPI (swagger-ui)
- docker, docker-compose https://docs.docker.com/compose/install/#install-compose
- php, composer (using swagger-php's local yml building)
# clone and new repositry
$ git clone [this repo] ./project-name
$ cd ./project-name
$ rm -rf ./.git
$ git init
# create laravel project
$ composer create-project laravel/laravel laravel --prefer-dist
$ chmod -R 777 laravel/storage
$ cd laravel
$ composer require zircote/swagger-php
# optional
$ composer require barryvdh/laravel-cors
- Edit
/docker_local/.env
- Run
$ cd /path/to/this/repo
$ cd docker_local
$ docker-compose up
- Browser access
http://localhost
... nginx (php-fpm)http://localhost:8080
... swagger-ui
- Edit
/docker/*
settings. $ docker-compose build
docker-compose exec app sh
shell loginapp
container.- swagger-php
- annotations http://zircote.com/swagger-php/Getting-started.html
- Update yaml file
$ php openapi.php