Skip to content

naneri/newboiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Description

A boilerplate docker files for a Laravel app. Download the files to your docker project.

Requirements

Linux, MacOS, Laravel based project

Setup

The containers available: PHP, NGINX, MYSQL Optional: Redis

To add the docker containers to your project simply do:

cp boiler/deploy/ YOUR_PROJECT_DIRECTORY/ -r
cd YOUR_PROJECT_DIRECTORY/deploy
cp .env.docker .env

Edit all the ports required in the .env file

Here are some commands that you might need:

$ docker-compose up -d         # start containers in background
$ docker-compose kill          # stop containers
$ docker-compose up -d --build # force rebuild of Dockerfiles
$ docker-compose rm            # remove stopped containers
$ docker ps                    # see list of running containers
$ docker exec -ti [NAME] bash

Running commands:

docker exec {container_name} $command
docker-compose run --rm composer install
docker-compose run --rm npm install
docker-compose run --rm npm run dev

More

If you want to use Redis - uncomment the lines in docker-compose.yml
If you use newboiler on many projects - rename the deploy folder to a unique name, because containers will use the folder name as prefix and might conflict

About

Boilerplate docker setup for Laravel apps.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages