You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe your issue
I do use this code base daily on a Windows (WSL) environment. Collegaes use the same environment on Macs as well (using the MacOS images instead).
On my Ubuntu machine I have used this code base in the past without problems, but as of some time (maybe after a Docker or Docker Desktop update?) it doesn't work anymore.
The problem occurs with the mounts we need for the PHP container:
php:
image: wodby/drupal-php:$PHP_TAG
container_name: "${PROJECT_NAME}_php"
env_file:
- .env
environment:
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
# PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S opensmtpd:25
DB_HOST: $DB_HOST
DB_PORT: $DB_PORT
DB_USER: $DB_USER
DB_PASSWORD: $DB_PASSWORD
DB_NAME: $DB_NAME
DB_DRIVER: $DB_DRIVER
PHP_FPM_CLEAR_ENV: "no"
PHP_FPM_USER: wodby
PHP_FPM_GROUP: wodby
# # Read instructions at https://wodby.com/docs/stacks/php/local/#xdebug
# The PHP_XDEBUG=1 variable now needs to be enabled at the top of the .env file. See .env.example for reference.
PHP_XDEBUG_MODE: debug
# PHP_IDE_CONFIG: "serverName=${PROJECT_NAME}" #This is needed for CLI debugging
PHP_XDEBUG_IDEKEY: "PHPSTORM"
PHP_XDEBUG_CLIENT_HOST: host.docker.internal # Docker 18.03+ Mac/Win
volumes:
- .:/var/www/html
- ./docker/files:/mnt/files # For Xdebug profiler files
- ./docker/site-php:/var/www/site-php
The volume .:/var/www/html specifically causes the project root to become chowned by user 100999:100999.
The image I specifiy from the .env file should be using user 1000:1000
# Linux (uid 1000 gid 1000)
PHP_TAG=8.1-dev-4.37.4
I've checked the user I run the docker compose up command from and it's 1000:1000:
paul@paul-HP-Pavilion-Laptop-15-cs3xxx:~$ id paul
uid=1000(paul) gid=1000(paul) groups=1000(paul),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),122(lpadmin),134(lxd),135(sambashare)
After Googling hours and hours I still have no clue how to fix this.
Codebase
Drupal 9 with various Wodby images.
Describe your issue
I do use this code base daily on a Windows (WSL) environment. Collegaes use the same environment on Macs as well (using the MacOS images instead).
On my Ubuntu machine I have used this code base in the past without problems, but as of some time (maybe after a Docker or Docker Desktop update?) it doesn't work anymore.
The problem occurs with the mounts we need for the PHP container:
The volume
.:/var/www/html
specifically causes the project root to become chowned by user 100999:100999.The image I specifiy from the .env file should be using user 1000:1000
I've checked the user I run the
docker compose up
command from and it's 1000:1000:After Googling hours and hours I still have no clue how to fix this.
Output of
docker info
Contents of your
docker-compose.yml
Contents of your
.env
Logs output
docker-compose logs
The text was updated successfully, but these errors were encountered: