wodby/docker4drupal

Error in compose file

o-bardiuk opened this issue · 5 comments

OS type
Linux

Drupal version
latest

Codebase
Built-in vanilla Drupal or mounted codebase

Describe the bug

ERROR: The Compose file './docker-compose.yml' is invalid because:
services.php.environment.PHP_MAIL_MIXED_LF_AND_CRLF contains true, which is an invalid type, it should be a string, number, or a null

Contents of your docker-compose.yml

default content of tag 6 0 8

Contents of your .env

default env

I fixed this issue by placing the value in quotes, so that it is considered a string (as announced in the error message).

So, from this:
PHP_MAIL_MIXED_LF_AND_CRLF: On

to this:
PHP_MAIL_MIXED_LF_AND_CRLF: 'On'

It works perfect now, but I'd like to hear @csandanov opinion, thank you (may be it is something that should be reported in official code?)

Can you share the following info as well?
docker compose version
docker -v

D4d release
6.0.10

docker -v
Docker version 20.10.18, build b40c2f6

docker-compose -v
docker-compose version 1.29.2, build 5becea4c

Since July 2023, Compose V1 has stopped receiving updates. It’s also no longer available in new releases of Docker Desktop.

Please follow step to migrate to V2 https://docs.docker.com/compose/migrate/