Closed nkhine closed 6 years ago
Is it vanilla drupal or do you mount your own codebase? If latter then you'll have to create the dir and manually set correct permissions
@csandanov - it is vanilla.
can you elaborate on the process, please, in the:
volumes:
- ./:/var/www/html
then create code
directory and volume section should this be changed to
volumes:
- ./code:/var/www/html
and then chown -R 1000:1000 code
, is this correct?
Do you have docker-compose.override.yml
in place if it's vanilla? If there's no such file it mount codebase from your current directory. Normally this error does not happen with vanilla since it comes with the correct directories/permissions. Can't reproduce it with the latest stable version.
Create dir/fix permissions:
# Access php container
# Alternatively use docker exec -ti [container id] bash
$ make shell
# In PHP container:
$ mkdir -p sites/default/files
# chmod to keep write permissions for wodby user
$ chmod 775 sites/default/files
$ chown www-data:www-data sites/default/files
yes, i have the latest code from https://github.com/wodby/docker4drupal - only changes that i made are on the .env
file.
i will try the changes, as suggested and advise, thanks
Ok, there actually was a problem, we didn't have docker-compose.override.yml
in docker4drupal.tar.gz
archive, I tested from the repository root. Fixed now, reuploaded the archive to the latest release 5.2.0.
Thank you for reporting this!
thanks for the quick response
Describe the bug Following the documentation outlined here https://wodby.com/docs/stacks/drupal/local/#local-environment-with-docker4drupal I get:
error
Output of
docker info
Contents of your
docker-compose.yml
Contents of your
.env
Logs output
docker-compose logs