Run the entire stack — Nginx, PHP, frontend assets, and PostgreSQL — with one command. No local PHP, Composer, Node, or database installation required.
Clone the repository:
git clone https://github.com/fajarghifar/inventory-management-system.git
cd inventory-management-system
Build and start the containers:
docker compose up --build -d
Open the app at http://localhost:8080
Login with the default admin credentials:
adminpasswordOn first start, Docker automatically:
| Command | Description |
|---|---|
docker compose up --build -d | Build and start in the background |
docker compose down | Stop and remove containers |
docker compose down -v | Stop and remove containers and database/storage volumes |
docker compose logs -f | Follow application logs |
docker compose exec app php artisan migrate | Run migrations manually |
docker compose exec app php artisan db:seed | Run seeders manually |
Default Docker settings are in .env.docker and docker-compose.yml:
| Variable | Default |
|---|---|
APP_PORT | 8080 |
DB_HOST | postgres (Docker service — not your local machine) |
DB_PORT | 5432 |
DB_DATABASE | inventory |
DB_USERNAME | inventory |
DB_PASSWORD | secret |
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
Content type
Image
Digest
sha256:219528277…
Size
418.1 MB
Last updated
over 1 year ago
docker pull inert/laravel-app