docker-gitlab
docker-gitlab copied to clipboard
Can't edit ~/gitlab/config/initializers/smtp_settings.rb
Hi
I need to change my SMTP_PASS that i set previously, I change it in /sbin/entrypoint.sh and restart the docker container but it doesn't help, also i change it in /home/git/gitlab/config/initializers smtp_settings.rb
and after restarting the container it resets to the previous one, I need to change it, how can i do that?
This image will be configured over environment variables. To configure your SMTP_PASS you need to set SMTP_PASS=<yourvalue>
in gitlab container. For more configurations options have a look at https://github.com/sameersbn/docker-gitlab#available-configuration-parameters .
I set them in ~/.profile
but i think gitlab use /home/git/gitlab/config/initializers/smtp_settings.rb
for it, I can't send mail after changing my password. I also set it in /sbin/entrypoint.sh
, it doesn't work, do you know who changes the /home/git/gitlab/config/initializers/smtp_settings.rb
file?
Did you ever get this figured out @mahzoun? I believe what SolidNerd was saying is that you shouldn't be making changes anywhere in the file structure of the container at all.
You simply need to use the environment variable SMTP_PASS
in your docker run...
statement or in your docker-compose.yml
if you're using Docker Compose (which I recommend).
~/.profile
should have nothing to do with setting your SMTP password as far as I know.
This issue has been automatically marked as stale because it has not had any activity for the last 60 days. It will be closed if no further activity occurs during the next 7 days. Thank you for your contributions.
if need to change config/initializers/smtp_settings.rb
and configuration-parameters, the only way to reload the environment variables is to recreate the docker?