Option 1:
docker pull mysql
docker pull phpmyadmin
docker pull drupal
docker run -d --name MysqlClient -e MYSQL_ROOT_PASSWORD=drupal mysql
Download the phpmyadmin image and Setup Container:
docker run --name phpmyadmin -d --link MysqlClient:db -p 8083:80 phpmyadmin
Download the Drupal image and Setup Container:
docker run -d --name dweb2 --link MysqlClient -p 8082:80 -e MYSQL_USER:root -e MYSQL_PASSWORD:drupal drupal
We are using docker4 drupal and following below URL
https://wodby.com/docs/1.0/stacks/drupal/local/
From
Mount my codebase
Download and unpack docker4drupal.tar.gz
with hidden files in a new directory, also get the drupal code with in web directory
composer create-project drupal/recommended-project my_site_name_dir
It means with in new directory we have docker files and drupal files also has web folder for drupal.
now run docker-compose up -d
Now PROJECT_BASE_URL is mentioned in .env file open this url in the web with port, it will open the drupal page, install the drupal and use the db credentials which are also mentioned in the env file.
Comments
Post a Comment