I'm using the gitlab/gitlab-ce:latest docker image to set up gitlab within my company's intranet.
Doing docker-compose up -d works like a charm and I can login as root, so I changed passwords, and made myself a proper user... but never got confirmation emails.
I've been tweaking the docker-compose.yml file to try to fix the smtp settings (which I assume are the issue), and this is what I've got:
web:
image: gitlab/gitlab-ce:latest
container_name: gitlab
restart: always
hostname: gitlab
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://127.0.0.1:11141'
gitlab_rails['gitlab_shell_ssh_port'] = 11122
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = 'mail'
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_user_name'] = 'noreply-gitlab'
gitlab_rails['smtp_password'] = 'thepass'
gitlab_rails['smtp_domain'] = 'ourhost.com'
gitlab_rails['smtp_authentication'] = 'login'
gitlab_rails['gitlab_email_from'] = 'noreply-gitlab@business.com'
gitlab_rails['gitlab_email_reply_to'] = 'gitlab@business.com'
ports:
- '11141:11141'
- '11122:22'
volumes:
- '/srv/gitlab/config:/etc/gitlab'
- '/srv/gitlab/logs:/var/log/gitlab'
- '/srv/gitlab/data:/var/opt/gitlab'
If nothing else, I'd really like to know how I can get to the logs. I know email is processed as a sidekiq job, but the sidekiq current log that I can see in the logs volume doesn't have anything about sending emails :\
In the production.log I see this:
Started POST "/users/confirmation" for 172.17.0.1 at 2017-05-18 20:26:32 +0000
Processing by ConfirmationsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"lotsoflettershere==", "user"=>{"email"=>"sean.newell@business.com"}}
Redirected to http://git.coolsrvrname.dev/users/almost_there
Completed 302 Found in 40ms (ActiveRecord: 3.9ms)
Which is just the request to send the confirmation email again, I believe. Does this mean there are no errors on gitlab's end and it is a problem with the smtp server?
Found this comment - I do not have ssl configured so I'll try that. (Also trying gitlab_rails['smtp_authentication'] = false) .... didn't work :\