This commit is contained in:
Bachir Soussi Chiadmi 2024-07-09 15:24:56 +02:00
parent 90f278c0a3
commit 357b6c7316
2 changed files with 10 additions and 10 deletions

View File

@ -44,28 +44,28 @@ logs:
maj_config: crd composer_install updb cim cr maj_config: crd composer_install updb cim cr
crd: crd:
docker exec caravane-api-1 /bin/bash -c "drush cache-clear drush" docker exec caravane-php-1 /bin/bash -c "drush cache-clear drush"
cr: cr:
docker exec caravane-api-1 /bin/bash -c "drush cr" docker exec caravane-php-1 /bin/bash -c "drush cr"
updb: updb:
docker exec caravane-api-1 /bin/bash -c "drush updb -y" docker exec caravane-php-1 /bin/bash -c "drush updb -y"
cim: cim:
docker exec caravane-api-1 /bin/bash -c "drush config-import -y" docker exec caravane-php-1 /bin/bash -c "drush config-import -y"
composer_install: composer_install:
docker exec caravane-api-1 /bin/bash -c "composer install --no-dev" docker exec caravane-php-1 /bin/bash -c "composer install --no-dev"
down: down:
docker-compose down docker-compose down
exec_api: exec_php:
docker exec -it caravane-api-1 bash docker exec -it caravane-php-1 bash
restart_api: restart_php:
docker-compose restart api docker-compose restart php
exec_mysql: exec_mysql:
docker exec -it caravane-mysql-1 bash docker exec -it caravane-mysql-1 bash

View File

@ -49,7 +49,7 @@ services:
- "${SRC_ROOT}:/var/www/html/" - "${SRC_ROOT}:/var/www/html/"
- "${LOG_ROOT}/php:/var/log:rw" - "${LOG_ROOT}/php:/var/log:rw"
- "${XDEBUG_INI}:/usr/local/etc/php/conf.d/xdebug.ini" - "${XDEBUG_INI}:/usr/local/etc/php/conf.d/xdebug.ini"
working_dir: "/var/www/html/src" working_dir: "/var/www/html/"
networks: networks:
- database - database
- redis - redis