-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add example for how to install modules #230
Comments
Since composer 2.4 I've added a drupal user to install modules since root is not allowed anymore. Otherwise you just run composer require in a site-specific Dockerfile.
|
Hi Johan, Thanks for the feedback, I havent yet run into that problem, probably because I'm currently still using 9.5. That is good to know, and an extra reason to have such an example available for people just starting out. I see now that I made a mistake in my first post: I meant a docker file, and a docker COMPOSE file. Now that I have a bit more experience with running drupal from a docker container, I can share a bit of what I've puzzled together. The user parts are still missing though. Here's an example of a docker script based on mine, in this script:
And here's a basic docker-compose file based on mine:
|
Thanks! Mine are as follows. Should perhaps also include acpu since its already kind-of big.
And from that I always make a site-specific Docker file with theme and modules that are specific for that site.
And my docker-compose files only include uploads as a volume, traefik as proxy, shared mysql (with more generous config)
But this is just how I do it for now, consider it as yet another example. |
Hi,
Drupals power comes from it's large library of modules, but there is no description of how to install a module. Only how to mount a folder with modules, and it is no longer advised to download and unzip them manually.
A dockerfile based on this official image in which composer require ... is demonstrated, together with a docker file that builds this dockerfile: wouldn't that be something to add to the documentation?
Currently when you search for Drupal and docker, you find a lot of alternative docker images, and very few examples of how to work with the official image in a best practice fashion.
The text was updated successfully, but these errors were encountered: