Skip to content

Commit

Permalink
- readme tweaks (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofrewak authored Sep 15, 2023
1 parent d69772a commit 5c34484
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
DOCKER_COMPOSE_FILENAME=docker-compose.yml
PHP_FPM_SERVICE_NAME=php

.PHONY: shell
shell:
docker compose -f ${DOCKER_COMPOSE_FILENAME} exec ${PHP_FPM_SERVICE_NAME} ash

.PHONY: run
run:
docker compose -f ${DOCKER_COMPOSE_FILENAME} up -d

.PHONY: stop
stop:
docker compose -f ${DOCKER_COMPOSE_FILENAME} stop

.PHONY: restart
restart: stop run
13 changes: 10 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,16 @@ There are scripts available for package codestyle checking and testing:

There is also the Docker Compose configuration available:
```shell
docker-compose up -d
docker-compose exec php php -v
docker-compose exec php composer -V
docker compose up -d
docker compose exec php php -v
docker compose exec php composer -V
```

There are also Makefile commands available:
```shell
make run
make shell
make stop
```

Please maintain our project guidelines:
Expand Down

0 comments on commit 5c34484

Please sign in to comment.