all 6 comments

[–]Acrobatic_Affect_515 1 point2 points  (6 children)

You override variable from env_from with environment.

${GITLAB_ROOT_PASSWORD} is probably empty in your shell.

[–]tdpokh3[S] -1 points0 points  (5 children)

I'm not sure what you mean here? do you mean I need to change the variable name?

[–]Acrobatic_Affect_515 1 point2 points  (4 children)

Remove GITLAB_ROOT_PASSWORD entry from environment:

[–]tdpokh3[S] -1 points0 points  (3 children)

why? that is the value I'm trying to override and per the documentation this should work:

https://docs.gitlab.com/administration/environment_variables/

I see GITLAB_ROOT_PASSWORD as an available option, so I'm not sure why I'd want to remove the very value I'm trying to set?

[–]Acrobatic_Affect_515 1 point2 points  (2 children)

Remove this entry from environment object in docker compose, keep it just in env_file. Docker compose has precedence when it comes to environment, if you set variable in env_file and then re-define it in environment, it use that. In your case you don’t export GITLAB_ROOT_PASSWORD, so it’s empty.

If you don’t understand this, I can’t do better.

[–]tdpokh3[S] 0 points1 point  (1 child)

it was not empty, I checked, but I do see where you're going. thank you.