Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker based setup

sudo docker-compose up --build
sudo docker ps
sudo docker exec -it 3a3a28011213 bash enter sql bash
cd var/mysql/backups   enter to backup
next copy database file and then place in backups folder in two places (config) .
mysql -u username -p database_name < file.sql
         root              pac
enter password: myroot in composer file
export and import configuration
first enter to web container
sudo docker exec -it d2e12c545cee bash
  then change directory to  cd var/www  and run command for vendor/bin/drush cr
 
PREVIOUS NEXT
Tagged: #docker #based #setup
ADD COMMENT
Topic
Name
6+3 =