drupal installed and running

This commit is contained in:
Bachir Soussi Chiadmi 2023-11-19 12:07:28 +01:00
parent 96437d8c05
commit 0b98b4c16e
6 changed files with 34 additions and 22 deletions

12
.env Normal file
View File

@ -0,0 +1,12 @@
COMPOSE_PROJECT_NAME=erable
PROJECT_ROOT=./src
LOG_ROOT=./log
DB_IMPORTE_FILE=./ressources/erable.sql
DB_ROOT_PASSWORD=erable
DB_NAME=erable
DB_USERNAME=erable
DB_PASSWORD=erable
XDEBUG_INI=./ressources/xdebug.ini

View File

@ -1,8 +1,8 @@
server { server {
listen 80; listen 80;
root /var/www/reha/web; root /var/www/erable/web;
index index.html index.php; index index.html index.php;
server_name dev.reha.fr; server_name dev.erable.fr;
charset utf-8; charset utf-8;
@ -14,7 +14,7 @@ server {
location = /robots.txt { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; }
access_log on; access_log on;
error_log /var/log/nginx/reha/error.log error; error_log /var/log/nginx/erable/error.log error;
sendfile off; sendfile off;

View File

@ -35,28 +35,28 @@ ps:
logs: logs:
docker-compose logs -f docker-compose logs -f
maj_config: crd composer_install updb cim cr pag #dev.phpmyadmin.reha.fr maj_config: crd composer_install updb cim cr pag #dev.phpmyadmin.erable.fr
crd: crd:
docker exec reha-php-1 /bin/bash -c "drush cache-clear drush" docker exec erable-php-1 /bin/bash -c "drush cache-clear drush"
composer_install: composer_install:
docker exec reha-php-1 /bin/bash -c "composer install --no-dev" docker exec erable-php-1 /bin/bash -c "composer install --no-dev"
updb: updb:
docker exec reha-php-1 /bin/bash -c "drush updb -y" docker exec erable-php-1 /bin/bash -c "drush updb -y"
cim: cim:
docker exec reha-php-1 /bin/bash -c "drush config-import -y" docker exec erable-php-1 /bin/bash -c "drush config-import -y"
# sync_struct: # sync_struct:
# docker exec reha-php-1 /bin/bash -c "drush im --choice safe && drush ib --choice full" # docker exec erable-php-1 /bin/bash -c "drush im --choice safe && drush ib --choice full"
cr: cr:
docker exec reha-php-1 /bin/bash -c "drush cr" docker exec erable-php-1 /bin/bash -c "drush cr"
pag: pag:
docker exec reha-php-1 /bin/bash -c "drush pag all canonical_entities:node && drush pag all canonical_entities:taxonomy_term" docker exec erable-php-1 /bin/bash -c "drush pag all canonical_entities:node && drush pag all canonical_entities:taxonomy_term"
restart_nginx: restart_nginx:
docker-compose restart nginx docker-compose restart nginx
@ -68,13 +68,13 @@ down:
docker-compose down docker-compose down
exec_nginx: exec_nginx:
docker exec -it reha-nginx-1 bash docker exec -it erable-nginx-1 bash
exec_php: exec_php:
docker exec -it reha-php-1 bash docker exec -it erable-php-1 bash
exec_mysql: exec_mysql:
docker exec -it reha-mysql-1 bash docker exec -it erable-mysql-1 bash
dump_db: dump_db:
docker exec reha-mysql-1 sh -c 'exec mysqldump -uroot -preha reha' > ./ressources/reha-$(DATE_NOW)-local.sql docker exec erable-mysql-1 sh -c 'exec mysqldump -uroot -perable erable' > ./ressources/erable-$(DATE_NOW)-local.sql

View File

@ -7,7 +7,7 @@ services:
volumes: volumes:
- db-data:/var/lib/mysql - db-data:/var/lib/mysql
- ./Docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro - ./Docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro
- "${DB_IMPORTE_FILE}:/docker-entrypoint-initdb.d/reha.sql" - "${DB_IMPORTE_FILE}:/docker-entrypoint-initdb.d/erable.sql"
networks: networks:
- database - database
environment: environment:
@ -30,10 +30,10 @@ services:
user: ${USER_UID}:${USER_GID} user: ${USER_UID}:${USER_GID}
volumes: volumes:
- php-user-data:/home/${USER_UNAME} - php-user-data:/home/${USER_UNAME}
- "${PROJECT_ROOT}:/var/www/reha" - "${PROJECT_ROOT}:/var/www/erable"
- "${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/reha/" working_dir: "/var/www/erable/"
networks: networks:
- database - database
- redis - redis
@ -64,7 +64,7 @@ services:
- 8980:80 - 8980:80
working_dir: "/var/www" working_dir: "/var/www"
volumes: volumes:
- "${PROJECT_ROOT}:/var/www/reha" - "${PROJECT_ROOT}:/var/www/erable"
- "${LOG_ROOT}:/var/log:rw" - "${LOG_ROOT}:/var/log:rw"
networks: networks:
- server - server

View File

@ -845,9 +845,9 @@ $settings['migrate_node_migrate_type_classic'] = FALSE;
$databases['default']['default'] = array ( $databases['default']['default'] = array (
'database' => 'reha', 'database' => 'erable',
'username' => 'root', 'username' => 'root',
'password' => 'reha', 'password' => 'erable',
'prefix' => '', 'prefix' => '',
'host' => 'mysql', 'host' => 'mysql',
'port' => '3306', 'port' => '3306',

2
src

@ -1 +1 @@
Subproject commit 6d6a28601b4b332172fd4a63df878c3ba0c9582a Subproject commit 6c737b9cc4f51b6ba49a3927cea3fce4f5cf90d7