Skip to content

Commit 537e44e

Browse files
author
n.zuev
committed
added Makefile
1 parent 5913081 commit 537e44e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,30 @@ with [FrankenPHP](https://frankenphp.dev) and [Caddy](https://caddyserver.com/)
1313
4. Open `https://localhost` in your favorite web browser and [accept the auto-generated TLS certificate](https://stackoverflow.com/a/15076602/1352334)
1414
5. Run `docker compose down --remove-orphans` to stop the Docker containers.
1515

16+
## Makefile Usage Instructions
17+
18+
This project includes a `Makefile` to simplify common Docker and Docker Compose operations. Below are the available commands and their descriptions.
19+
20+
### Prerequisites
21+
22+
- `make` (usually preinstalled on Linux/macOS; available via package managers on Windows like WSL or Cygwin)
23+
24+
---
25+
26+
### Available Commands
27+
28+
| Command | Description |
29+
|---------------------|----------------------------------------------------------------------------------------------------|
30+
| `make` or `make up` | Start all containers in foreground (with logs). |
31+
| `make down` | Stop and remove all containers, networks, and volumes. |
32+
| `make build` | Clean up previous containers and volumes, then rebuild images and start services in detached mode. |
33+
| `make list` | List all running Docker containers. |
34+
| `make lf` | Follow logs from the `fluent-bit-cn` container (streaming). |
35+
| `make lp` | Show logs from the `php-fpm` container. |
36+
| `make p` | Open a shell inside the running `php` container (useful for debugging, running commands, etc.). |
37+
38+
---
39+
1640
## Features
1741

1842
- Production, development and CI ready

0 commit comments

Comments
 (0)