Sign inSign up

inert/laravel-app

By inert

•Updated 2 months ago

laravel-app

Image
0

711

inert/laravel-app repository overview

⁠Docker

Run the entire stack — Nginx, PHP, frontend assets, and PostgreSQL — with one command. No local PHP, Composer, Node, or database installation required.

⁠Prerequisites
⁠Start the application
  1. Clone the repository:

    git clone https://github.com/fajarghifar/inventory-management-system.git
    cd inventory-management-system
    
  2. Build and start the containers:

    docker compose up --build -d
    
  3. Open the app at http://localhost:8080⁠

  4. Login with the default admin credentials:

    • Username: admin
    • Password: password

On first start, Docker automatically:

  • Builds frontend assets (Vite)
  • Starts a PostgreSQL container (no local DB needed)
  • Runs migrations and seeders
  • Starts Nginx, PHP-FPM, and the queue worker
⁠Useful Docker commands
CommandDescription
docker compose up --build -dBuild and start in the background
docker compose downStop and remove containers
docker compose down -vStop and remove containers and database/storage volumes
docker compose logs -fFollow application logs
docker compose exec app php artisan migrateRun migrations manually
docker compose exec app php artisan db:seedRun seeders manually
⁠Configuration

Default Docker settings are in .env.docker and docker-compose.yml:

VariableDefault
APP_PORT8080
DB_HOSTpostgres (Docker service — not your local machine)
DB_PORT5432
DB_DATABASEinventory
DB_USERNAMEinventory
DB_PASSWORDsecret

To use a different port, create a .env file in the project root (or export the variable):

APP_PORT=9000 docker compose up --build -d

Tag summary

Content type

Image

Digest

sha256:219528277…

Size

418.1 MB

Last updated

over 1 year ago

docker pull inert/laravel-app