Skip to content

jeffochoa/laravel-varnish-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

  • Docker
  • Docker compose

General disclaimer

Do not use on production. This image is meant to be use for development purposes only, the use of it on a production environment is all up to your entire responsibility.

Includes

  • Varnish
  • Redis
  • MariaDB
  • Nginx
  • Supervisor

Install

Download and run:

docker-compose build --no-cache

The public/ folder must be present before build the image

Then add the config for your local environment

cp .docker.env.example .docker.env

Interacting with the containers

Use the interactive console

docker exec -it laravel-app bash
docker exec -it laravel-nginx bash
docker exec -it laravel-varnish bash
docker exec -it laravel-database bash

Running supervisor

Open the terminal in the app container

docker exec -it laravel-app bash

Then start the laravel worker

supervisorctl start laravel-worker:*

Want to know more about Docker?

Learn How to Make PHP Development with Docker Feel like 127.0.0.1

Docker for PHP developers

This book and video-course was created by @paulredmon

Licence

This package is an open-sourced software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages