update docker execute

This commit is contained in:
khanh97dev 2023-11-09 16:43:49 +07:00
parent 1a1f7af109
commit 9d95843af6
3 changed files with 15 additions and 0 deletions

5
docker-composer.cmd Executable file
View File

@ -0,0 +1,5 @@
@echo off
for /f "delims=" %%a in ('type .env') do set "%%a"
echo "run composer..."
docker exec -it "%DOCKER_CONTAINER_NAME%" composer %*

5
docker-exec.cmd Executable file
View File

@ -0,0 +1,5 @@
@echo off
for /f "delims=" %%a in ('type .env') do set "%%a"
echo "run docker..."
docker exec -it "%DOCKER_CONTAINER_NAME%" %*

5
docker-php.cmd Executable file
View File

@ -0,0 +1,5 @@
@echo off
for /f "delims=" %%a in ('type .env') do set "%%a"
echo "run php..."
docker exec -it "%DOCKER_CONTAINER_NAME%" php %*