From 76b1ca96de8289462079271f82c331f6f32b63a4 Mon Sep 17 00:00:00 2001 From: "n.zuev" Date: Mon, 3 Nov 2025 13:47:57 +0500 Subject: [PATCH 1/3] added Makefile --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..74c4755b9 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +default: up + +up: + docker-compose up + +down: + docker-compose down + +build: + docker-compose down -v --remove-orphans + docker-compose rm -vsf + docker-compose up -d --build + +list: + docker ps + +lf: + docker logs -f fluent-bit-cn + +lp: + docker logs php-fpm + +p: + docker-compose exec php sh From 59130819b8e2e89ef38902729b389a69264df401 Mon Sep 17 00:00:00 2001 From: "n.zuev" Date: Mon, 3 Nov 2025 13:48:06 +0500 Subject: [PATCH 2/3] added Makefile --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..485dee64b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea From 537e44e68b5f5379888e4ba6b1c1d7ea8bd7af28 Mon Sep 17 00:00:00 2001 From: "n.zuev" Date: Mon, 3 Nov 2025 13:57:43 +0500 Subject: [PATCH 3/3] added Makefile --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 40b342541..5814f7534 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,30 @@ with [FrankenPHP](https://frankenphp.dev) and [Caddy](https://caddyserver.com/) 4. Open `https://localhost` in your favorite web browser and [accept the auto-generated TLS certificate](https://stackoverflow.com/a/15076602/1352334) 5. Run `docker compose down --remove-orphans` to stop the Docker containers. +## Makefile Usage Instructions + +This project includes a `Makefile` to simplify common Docker and Docker Compose operations. Below are the available commands and their descriptions. + +### Prerequisites + +- `make` (usually preinstalled on Linux/macOS; available via package managers on Windows like WSL or Cygwin) + +--- + +### Available Commands + +| Command | Description | +|---------------------|----------------------------------------------------------------------------------------------------| +| `make` or `make up` | Start all containers in foreground (with logs). | +| `make down` | Stop and remove all containers, networks, and volumes. | +| `make build` | Clean up previous containers and volumes, then rebuild images and start services in detached mode. | +| `make list` | List all running Docker containers. | +| `make lf` | Follow logs from the `fluent-bit-cn` container (streaming). | +| `make lp` | Show logs from the `php-fpm` container. | +| `make p` | Open a shell inside the running `php` container (useful for debugging, running commands, etc.). | + +--- + ## Features - Production, development and CI ready