Great video-Needs minor updates. Now there is an .env file available, making life easier. There are two .travis.yml files that need to combined for the server settings to work. The docker-compose.yml edits are no longer needed. Very helpful! Thanks.
Hey, awesome video man. It took some time for me to understand and do but it is such a great process. One question, could you give me some idea or point to some resource as how can I install several instances of different Drupal websites in my local system. Thanks
Hi, great video thanks. I have an exported Drupal site which has a docker-compose.yml in the root. Would I put this site in the web folder and then run 'docker compose up' after completing the steps in your video ? Thanks again
Hi Mike ! Thanks a lot! Yes - that is a good idea. In that case, though, you would not use the drupal-compose project, I guess. You may leave the docker-compose.yml in the root folder and as you said - just move the Drupal files in the web folder. This way as you implement the same docker-compose.yml changes as those in the video - you would see the root of your project as you open drupal.docker.localhost:8888 . As you have an existing Drupal though - you would have to find a way to import the database. You can do that by uncommenting the pma (phpmyadmin) container before you run the "docker-compose up -d" and then you can just go to the phpmyadmin would be something like pma.drupal.docker.localhost:8888 . another way would be to ssh to the php container and import with drush. there are plenty of options there, but keep that in mind. Good luck ! :)
Hi Patrick! Thanks a lot for the good words! Yes, of course, you may do that. It is a normal docker compose file so the same logic is applied. In the docker-compose.yml file from this example after services: mariadb: image: wodby/mariadb:10.1-2.3.5 on the same level as "image: wodby/mariadb:10.1-2.3.5" you may put something like ports: - 3306:3366 so it would look something like this: services: mariadb: image: wodby/mariadb:10.1-2.3.5 ports: - 3306:3366 I checked this syntax from here docs.docker.com/compose/compose-file/#long-syntax-1 Cheers!
@@Drupal-up Hi Nikolay, good work, I want to know what is my current port for mariadb because I want to access with sequel pro. Is it necessary to add the port like you mentioned before in the docker-compose.yml file ??
Hi, I have a published Drupal 7 site, and I would like to have a copy of it in my new laptop using this method (composer and docker). Please can you help me with the modification to do in drupal-composer project since it's working with drupal 8 versions. Thank you.
Hi! Well, I would say that if you would like to make it work for a Drupal 7 project - you may simply skip the part with the Drupal Composer project. You may just make sure that you have your codebase under the web folder, inside of the project. Also, you should make sure that you make the changes in the settings.php file (your database credentials mainly) and you may activate, as I mentioned before the container with phpmyadmin - so that you could easily import the database of your already existing project. Cheers and good luck!
Yes, you are very right. I am planning to make another one for the new setup. Cheers and thanks for pointing it out for the others that might be confused!
Hy Nikolay, thanks for the video. I've done the exacts as you do in your video. But when i try to open the local drupal site, where the installiation should start, it shows me 1 error : The website encountered an unexpected error. Please try again later. Can you give me some hint, where to troubleshoot ? Thanks in advance.
Actually, i got it. I saw an entry in the nginx's log, that could not connect with the user to the datatable. but actually, it tried to connect with an account, which i did not specify in the compose.yml. With what user tries to connect to the database, in default?
Hi David! It is very weird... it would not be trying to connect to the database before you installed Drupal. Basically, you specify the DB credentials after you select the language in the second step of the installation... so you say you did everything exactly the same just going to the visual part of the installation? I will try it now and I will get back to you ... Cheers!
Hi David! As I checked it now it is all working. Except the fact that now the custom settings are made directly in a file, called .env and that the defaults that are comming with the git clone are actually the ones that I implemented, except the port change and the removing of some unneeded containeds. I just installed it localy and it all works and I see the installation screen of Drupal and it seems like it would work. Cheers and let me know if you tackled this problem!
Drupal Up Yes , i had to provide a correct sql credentials before the visual installation. Although the php container throwed the error, and was visible in the servers log, specifically. After I did create a user, which tried to log in with, the visual installation is now loaded, and I could install the drupal. Now it works fine. Thanks.
That is very funny, because there is a MySQL user with the correct credentials exist from the very beginning. You see it in the .env file: DB_NAME=drupal DB_USER=drupal DB_PASSWORD=drupal DB_ROOT_PASSWORD=password DB_HOST=mariadb DB_DRIVER=mysql But the important part is that you continued trying and solved it. Cheers and have a good one !
Hi Christos, the idea is that you have more control. The codebase could be in the structure you want it. The version of PHP and the other containers could be switched super easy. Docker compose makes everything easier, you don't have to change everything as you want to switch just some of the containers in the setup.
Here is the video with the latest version of docker4drupal (Oct. 2018): ua-cam.com/video/aYb8C18HjmY/v-deo.html
Great video-Needs minor updates. Now there is an .env file available, making life easier. There are two .travis.yml files that need to combined for the server settings to work.
The docker-compose.yml edits are no longer needed. Very helpful! Thanks.
Bets video tutorial on this subject yet!!!
Hi Nikolay! Awesome Video .
SpellCheck near, * And compy the* "COPY"
Hey, awesome video man. It took some time for me to understand and do but it is such a great process.
One question, could you give me some idea or point to some resource as how can I install several instances of different Drupal websites in my local system. Thanks
Hi, great video thanks.
I have an exported Drupal site which has a docker-compose.yml in the root.
Would I put this site in the web folder and then run 'docker compose up' after completing the steps in your video ?
Thanks again
Hi Mike ! Thanks a lot! Yes - that is a good idea. In that case, though, you would not use the drupal-compose project, I guess. You may leave the docker-compose.yml in the root folder and as you said - just move the Drupal files in the web folder. This way as you implement the same docker-compose.yml changes as those in the video - you would see the root of your project as you open drupal.docker.localhost:8888 . As you have an existing Drupal though - you would have to find a way to import the database. You can do that by uncommenting the pma (phpmyadmin) container before you run the "docker-compose up -d" and then you can just go to the phpmyadmin would be something like pma.drupal.docker.localhost:8888 . another way would be to ssh to the php container and import with drush. there are plenty of options there, but keep that in mind. Good luck ! :)
Awesome, thanks for you response and help!
Great video but how do I expose the mariadb port so I can access with sequel pro or something like that?
Hi Patrick! Thanks a lot for the good words! Yes, of course, you may do that. It is a normal docker compose file so the same logic is applied. In the docker-compose.yml file from this example after
services:
mariadb:
image: wodby/mariadb:10.1-2.3.5
on the same level as "image: wodby/mariadb:10.1-2.3.5" you may put something like
ports:
- 3306:3366
so it would look something like this:
services:
mariadb:
image: wodby/mariadb:10.1-2.3.5
ports:
- 3306:3366
I checked this syntax from here docs.docker.com/compose/compose-file/#long-syntax-1
Cheers!
@@Drupal-up Hi Nikolay, good work, I want to know what is my current port for mariadb because I want to access with sequel pro. Is it necessary to add the port like you mentioned before in the docker-compose.yml file ??
Yes, It works,
mariadb:
image: wodby/mariadb:10.1-2.3.5
ports:
- 3311:3306
Then, I setup sequel pro with the port: 3311
Where can I find the settings.php ??
How install modules with tis setup?
Hi, I have a published Drupal 7 site, and I would like to have a copy of it in my new laptop using this method (composer and docker). Please can you help me with the modification to do in drupal-composer project since it's working with drupal 8 versions. Thank you.
Hi! Well, I would say that if you would like to make it work for a Drupal 7 project - you may simply skip the part with the Drupal Composer project. You may just make sure that you have your codebase under the web folder, inside of the project. Also, you should make sure that you make the changes in the settings.php file (your database credentials mainly) and you may activate, as I mentioned before the container with phpmyadmin - so that you could easily import the database of your already existing project. Cheers and good luck!
hi, seems like your video is outdated... the docker4drupal has changed since...
Yes, you are very right. I am planning to make another one for the new setup. Cheers and thanks for pointing it out for the others that might be confused!
Hy Nikolay, thanks for the video.
I've done the exacts as you do in your video. But when i try to open the local drupal site, where the installiation should start, it shows me 1 error : The website encountered an unexpected error. Please try again later.
Can you give me some hint, where to troubleshoot ?
Thanks in advance.
Actually, i got it. I saw an entry in the nginx's log, that could not connect with the user to the datatable. but actually, it tried to connect with an account, which i did not specify in the compose.yml. With what user tries to connect to the database, in default?
Hi David! It is very weird... it would not be trying to connect to the database before you installed Drupal. Basically, you specify the DB credentials after you select the language in the second step of the installation... so you say you did everything exactly the same just going to the visual part of the installation? I will try it now and I will get back to you ... Cheers!
Hi David! As I checked it now it is all working. Except the fact that now the custom settings are made directly in a file, called .env and that the defaults that are comming with the git clone are actually the ones that I implemented, except the port change and the removing of some unneeded containeds. I just installed it localy and it all works and I see the installation screen of Drupal and it seems like it would work. Cheers and let me know if you tackled this problem!
Drupal Up Yes , i had to provide a correct sql credentials before the visual installation. Although the php container throwed the error, and was visible in the servers log, specifically. After I did create a user, which tried to log in with, the visual installation is now loaded, and I could install the drupal. Now it works fine.
Thanks.
That is very funny, because there is a MySQL user with the correct credentials exist from the very beginning. You see it in the .env file: DB_NAME=drupal
DB_USER=drupal
DB_PASSWORD=drupal
DB_ROOT_PASSWORD=password
DB_HOST=mariadb
DB_DRIVER=mysql
But the important part is that you continued trying and solved it. Cheers and have a good one !
hi i folow all the steps, but when i go to drupal.docker.localhost:8888 it refuse the conecction, can you help me?
Hi Oskar, are you sure you changed the port correctly to 8888 ? Aslo what do you see when you do a "docker ps -a" in the terminal ? Cheers!
Why not the official docker-library/drupal ?
Hi Christos, the idea is that you have more control. The codebase could be in the structure you want it. The version of PHP and the other containers could be switched super easy. Docker compose makes everything easier, you don't have to change everything as you want to switch just some of the containers in the setup.