UDOIT icon indicating copy to clipboard operation
UDOIT copied to clipboard

env_file in docker-compose not overriding. Remove/comment duplicates from .env

Open jonespm opened this issue 3 years ago • 0 comments

In the docker-compose.yml there are two files defined .env and .env.local.

However any changes made to .env.local aren't overriding the values in .env.

It looks like this is expected behavior. https://forums.docker.com/t/combining-docker-compose-override-files-with-mutliple-env-files/119895/3 https://github.com/docker/compose/issues/7326#issuecomment-1072390032

I think it should either just be one file that we make the changes in, or the changes should be removed/commented out of the default .env file. Seems easier to just have a .env.example?

To test just start this up locally with docker compose and make a change to the .env.local. It will still be using the value from .env, like BASE_URL.

Also some values like JWK_BASE_URL are only defined in the .env and those may need to be changed or just removed entirely.

jonespm avatar Oct 06 '22 20:10 jonespm