-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13383ee
commit a874c3b
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
container=php | ||
|
||
up: | ||
docker compose up -d | ||
|
||
down: | ||
docker compose down | ||
|
||
ps: | ||
docker compose ps | ||
|
||
install: | ||
docker compose exec ${container} composer install | ||
|
||
update: | ||
docker compose exec ${container} composer update | ||
|
||
require: | ||
docker compose exec ${container} composer require | ||
|
||
require-dev: | ||
docker compose exec ${container} composer require --dev | ||
|
||
shell: | ||
docker compose exec ${container} sh | ||
|
||
root-shell: | ||
docker compose exec -u root ${container} sh | ||
|
||
logs: | ||
docker compose logs -f ${container} | ||
|
||
logs-queries: | ||
docker compose logs ${container} | grep 'Executing statement' | ||
|
||
logs-requests: | ||
docker compose logs ${container} | grep 'Received request' |