Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in compose file #563

Open
o-bardiuk opened this issue Nov 22, 2023 · 5 comments
Open

Error in compose file #563

o-bardiuk opened this issue Nov 22, 2023 · 5 comments

Comments

@o-bardiuk
Copy link

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
@iVegas
Copy link
Contributor

iVegas commented Feb 27, 2024

You probably want to change true to on
See https://github.com/wodby/docker4drupal/blob/6.0.10/docker-compose.yml#L19

@MXTcomunica
Copy link

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?)

@iVegas
Copy link
Contributor

iVegas commented Jun 30, 2024

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

@MXTcomunica
Copy link

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

@iVegas
Copy link
Contributor

iVegas commented Jul 2, 2024

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants