Skip to content

Build a simple laravel application development environment with Docker.

Notifications You must be signed in to change notification settings

agungprsty/laravel-postgres-with-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel using PostgreSQL in Docker

docker+laravel

Introduction

Build a simple laravel application development environment with docker compose.

Requirement

  • Docker ^19.*

Installation

  1. Git clone & move to working directory
  2. Settings your credentials, copy .env.example to .env
  3. Execute the following command for create application
$ make create-project
  1. Next, set environment DB for app laravel in src/.env variable :
DB_CONNECTION=pgsql
DB_HOST=postgres
DB_PORT=5432
DB_DATABASE=<your_db_name>      // same in root .env variable POSTGRES_DB
DB_USERNAME=<your_db_user>      // same in root .env variable POSTGRES_USER
DB_PASSWORD=<your_db_password>  // same in root .env variable POSTGRES_PASSWORD
  1. show application in http://localhost:85

app+laravel

  1. show adminer in http://localhost:8080

adminer

  1. show pgadmin in http://localhost:5050

pgadmin

  1. list execute command in Makefile.

Container details :

Optional

  • pgadmin use image:

About

Build a simple laravel application development environment with Docker.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published