Build a simple laravel application development environment with docker compose.
- Docker ^19.*
- Git clone & move to working directory
- Settings your credentials, copy
.env.example
to.env
- Execute the following command for create application
$ make create-project
- 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
- show application in http://localhost:85
- show adminer in http://localhost:8080
- show pgadmin in http://localhost:5050
- list execute command in Makefile.
app
use image:web
use image:- nginx:stable-alpine
db
use image:- postgres:15
adminer
use image:- adminer:latest
Optional
pgadmin
use image:- pgadmin:latest