Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 710 Bytes

README.md

File metadata and controls

36 lines (32 loc) · 710 Bytes

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