Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker setup

Step 1: Setup. ...
Step 2: Create a Dockerfile. ...
Step 3: Define services in a Compose file. ...
Step 4: Build and run your app with Compose. ...
Step 5: Edit the Compose file to add a bind mount. ...
Step 6: Re-build and run the app with Compose. ...
Step 7: Update the application.
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: rails all path 
Shell :: git clone single branch 
Shell :: letsencrypt wildcard certificate certbot 
Shell :: git add file in ignored folder 
Shell :: linux install pycharm command line without snap 
Shell :: linux format disk fat32 
Shell :: bluetooth does not work after lock ubuntu 
Shell :: grep a string in txt file 
Shell :: bash add all numbers 
Shell :: linux chmod permissions 
Shell :: remove .env file from git history 
Shell :: install rider ubuntu 
Shell :: laravel 9 
Shell :: drupal cli composer 
Shell :: how to logout from github desktop 
Shell :: how to see ip in linux 
Shell :: command to stop docker 
Shell :: bash command in variable 
Shell :: curl certificate and password 
Shell :: git force push after reset 
Shell :: enable option in ubuntu to create document on right click 
Shell :: git credentials store with timeout 
Shell :: days between two dates in linux 
Shell :: remove pdf last list 
Shell :: linux stress test 
Shell :: how to setup .env file for docker 
Shell :: git remove all user data 
Shell :: ubuntu absolute path of file 
Shell :: better wget 
Shell :: pm2 remove process from list 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =