Open santangelx opened 3 years ago
maybe double quotes are not allowed in env vars:
BACKEND_CORS_ORIGINS= ["http://172.19.36.52:8080", "http://localhost:8080", "https:...
maybe this will work?
BACKEND_CORS_ORIGINS= ['http://172.19.36.52:8080', 'http://localhost:8080', 'https:...
What docker/compose versions are you using? Are you using the same for Mac and Ubuntu?
$ docker --version
$ docker-compose --version
FYI I'm here because it seems that docker-compose cannot parse "." in the variable name. Only recently started happening
$ docker --version
Docker version 20.10.8, build 3967b7d
$ docker-compose --version
Docker Compose version v2.0.0
Thank you both. I ended up testing a few solutions by modifying the BACKEND_CORS_ORIGIN and replaced it with :
BACKEND_CORS_ORIGINS= ["http://localhost:8080","http://172.19.36.52:8080","http://localhost","http://localhost:4200","http://localhost:3000","http://dev.mifarmacia.app","https://stag.mifarmacia.app","https://mifarmacia.app","http://local.dockertoolbox.tiangolo.com","http://localhost.tiangolo.com"]
It seems to be working now. I'll add the docker and docker-compose versions. Note that my friend was using the exact same versions and had no issues.
$ docker -v
Docker version 20.10.8, build 3967b7d
$docker-compose -v
Docker Compose version v2.0.0
santa@MBP-de-Alex mifarma-api %
$ docker -v
Docker version 20.10.8, build 3967b7d
$docker-compose -v
Docker Compose version v2.0.0
The parser doesn't like the space between each array element.
Do this:
VARIABLE=["a","b","c"]
Not this:
VARIABLE=["a", "b", "c"]
Hi, I think docker compose V2 has breaking change 👇 https://docs.docker.com/compose/cli-command/
You can:
$ docker compose
OR
$ docker-compose disable-v2
Hope it helps 😄
Hi, I think docker compose V2 has breaking change 👇 https://docs.docker.com/compose/cli-command/
You can:
- use new command
docker compose
OR
- disable compose v2
docker-compose disable-v2
Hope it helps 😄
This worked for me!
For me, dashes are not even allowed in .env files.
For me, dashes are not even allowed in .env files.
I had the same issue, the comment by @sylvia-shen solved it - https://github.com/tiangolo/full-stack-fastapi-postgresql/issues/427#issuecomment-943205487
I had the same issue. Disabling docker compose v2 fixed it (docker-compose disable-v2). What's breaking this?
Docker Compose V2 has breaking changes due to which it throws the error while parsing environment file. One solution is to change the environment file by replacing all double quotes with single quotes and by wrapping these environment variables with a double quote (see this example environment file - works with V2 as well as V1.x)
This is the terminal output:
The culprit should be in this code (?) even though it works on ubuntu. I've cleared the code of confidential and possibly sensible information but no lines have been erased, only modified.
------------------------------------------CODE------------------------------------------