I don't know exacly why it's working, but I believe the correct syntax might use = instead of :. In an .env file, the proper format is to use = without spaces around it to assign environment variables.
=
: