wodby / docker4drupal

Docker-based Drupal stack
https://wodby.com/docker4drupal
MIT License
1.24k stars 535 forks source link

Docker4drupal, d4d - how to see/access files of the conteiner? How to edit files? How to commit files of Drupal to git? #522

Open ghost opened 2 years ago

ghost commented 2 years ago

There are files in the php container, ls -1

composer.json
composer.lock
vendor
web

Where are they? I was expecting them in my d4d folder? My d-c.yml

php:
    volumes:
    - ./:/var/www/html:cached
nginx:
    volumes:
    - ./:/var/www/html:cached

What do I do to be able to see files?

ghost commented 2 years ago

I don't get the whole purpuse of D4d, why it even exists if I still need to go to Drupal org and get drupal-core recommended, erase .git folder of d4d and checkout drupal-core-recommended. And it won't clone becuase folder is not empty. Do I store d4d git separately from drupal-core?

I just don't get this whole project and why it exists

There are better php images if there is no Drupal: https://github.com/thecodingmachine/docker-images-php

ghost commented 2 years ago

It was really hard to understand this but d4d is not meant for using Drupal files that go inside of it. Install Drupal separately.

kevinquillen commented 1 year ago

Drupal org and get drupal-core recommended, erase .git folder of d4d and checkout drupal-core-recommended. And it won't clone becuase folder is not empty.

This is not true.. you start the stack, composer create-project drupal/core-recommended and theres drupal. you shouldnt be git clone-ing Drupal into the project, you should use composer.

What do I do to be able to see files?

What files, exactly?

Do I store d4d git separately from drupal-core?

What .git folder?