docker4drupal icon indicating copy to clipboard operation
docker4drupal copied to clipboard

Change default volumes for code on docker-compose.yml

Open alonsomaniaco opened this issue 3 years ago • 3 comments

Volume for ./:/var/www/html:cached is used in some services when you run a existing code but I think it would be a better idea to use something like ./src/:/var/www/html:cached.

My idea is change the default directory for an src folder in which you can place your existing code, instead of the root one, because of it has a lot of files that are not important inside docker or for our application. This would allow too to have that folder with any version control system without deleting this repository origin in parent folder.

alonsomaniaco avatar Jul 08 '22 06:07 alonsomaniaco

Feel free to edit docker-compose.yml as you want, we don't want to set requirements how to structure your repo, we just describe a simple use case in our quick start guide: download the archive with files from gh releases, put it in your repo (wherever you like). People do fork this repo and use it as the boilerplate but docker4drupal was never intended to be a boilerplate.

csandanov avatar Jul 08 '22 08:07 csandanov

Yes yes, I opened this because of I think it is better to have our code separated by default from the docker one.

alonsomaniaco avatar Jul 08 '22 08:07 alonsomaniaco

boilerplate but docker4drupal was never intended to be a boilerplate.

Does it mean I have to install Drupal files myself? What is the point of having them inside the container by default then?

UPD: yes I have to install Drupal by myself.

ghost avatar Jul 13 '22 15:07 ghost