Laravel development template - project generator/development environment. Can be used by Laravel developers to start quickly on building web apps, restful api's etc. This stack allows you to setup development environment with a single docker-compose command
Before installing this project, please, make sure you have installed docker and docker-compose
To install docker execute:
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sh get-docker.sh
$ pip install docker-compose
Clone this project into your work directory:
$ git clone https://github.com/trydirect/laravel-formula.git
Then build it via docker-compose:
$ cd laravel-formula/7.6.0
$ docker-compose up -d
Let's finish setup with configuring stack
cp backend/.env.example backend/.env
docker-compose exec web bash -c "cd backend && composer install"
docker-compose exec web bash -c "chmod -R 777 /var/www/backend/storage/"
docker-compose exec web bash -c "php artisan key:generate"
Let's check running containers
$ docker-compose ps
IMAGE COMMAND CREATED STATUS PORTS
kibana:5.4.3 "/docker-entrypoint.…" 2 hours ago Up 0.0.0.0:5601->5601/tcp
logstash "/usr/local/bin/dock…" 2 hours ago Up 9600/tcp, 0.0.0.0:32775->5044/tcp
nginx:latest "/docker-entrypoint.…" 2 hours ago Up 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp
elasticsearch "/docker-entrypoint.…" 2 hours ago Up 9200/tcp, 9300/tcp
laravel:7.6.0 "/usr/local/bin/supe…" 2 hours ago Up 9000/tcp
rabbitmq:3-management "docker-entrypoint.s…" 2 hours ago Up 4369/tcp, 5671/tcp, 15671-15672/tcp, 25672/tcp, 0.0.0.0:5672->5672/tcp, 0.0.0.0:32774->21072/tcp
mysql:5.7 "docker-entrypoint.s…" 2 hours ago Up 3306/tcp, 33060/tcp
redis:latest "docker-entrypoint.s…" 2 hours ago Up 6379/tcp
Find examples in laravel-formula/7.6.0/backend:
$ tree routes
routes
├── api.php
├── channels.php
├── console.php
└── web.php
Content type
Image
Digest
sha256:fc22afee8…
Size
324.8 MB
Last updated
about 2 years ago
docker pull trydirect/laravel