Posts

Showing posts with the label docker with mysql

Deploy Drupal with MySQL in Docker Container

Image
  FIRST METHOD Before we install Drupal, we need to deploy MySQL. This is easily done with Docker by running the following command. In this command, replace “MYSQL-NAME” with a name for your MySQL Docker container. Also, replace “MYSQL-PASSWORD” with a new password for the container’s MySQL instance. Record both of these for later. docker run --name MYSQL-NAME -e MYSQL_ROOT_PASSWORD=MYSQL-PASSWORD -d mysql:latest Deploying and Configuring Drupal with Docker Our next step is to deploy a Drupal Docker container, connect it to your MySQL container, and finish configuring Drupal. Follow these steps. Run the following command. Replace “DRUPAL-NAME” with a name for your Drupal container. Replace “MYSQL-NAME” and “MYSQL-PASSWORD” with the values you used for your MySQL Docker container in the previous section. docker run --name DRUPAL-NAME --link MYSQL-NAME:mysql -p 8080:80 -e MYSQL_USER=root -e MYSQL_PASSWORD=MYSQL-PASSWORD -d drupal Go to  http://YOUR.VPS.IP:8080/  in ...