Skip to content

HijenHEK/laravel-docker-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-docker-setup

simple laravel docker set based on a digital ocean example

whats in it

  • separate nginx and fpm containers
  • separate networks for API and WEB context
  • mailhog for testing emails

installation

  1. clone the project
$ git clone https://github.com/HijenHEK/laravel-docker-setup.git
  1. copy files to your project directory
$ cp -r laravel-docker-setup/* <your-laravel-project-directory>
  1. add the env variable to your .env or use default values
SERVER_USER
SERVER_USER_UID
DB_DATABASE
DB_PASSWORD
DB_PASSWORD
DB_USERNAME
FORWARD_DB_PORT
APP_PORT
MAIL_PORT
MAILHOG_PORT
  1. build and create your containers
$ docker-compose up -d --build

About

simple laravel docker set

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published