GitLab Docker CE and Email not sending with default bridge

Installed GitLab CE v12.7.0. Everything seems to work except the email. Inspecting the docker container revels an error message of “no route to host”. If I switch the container to use “host” networking instead of the default “bridge”, the email sends fine, so it makes me think there is something with the default bridge that is setup. However I am new to Docker and GitLab so I do not know enough to see the issue.

This is the command I am using to run the container (edited the ip address):

docker run --detach
–hostname 10.x.x.x
–env GITLAB_OMNIBUS_CONFIG=“external_url ‘https://10.x.x.x/’;
nginx[‘redirect_http_to_https’] = true;
gitlab_rails[‘smtp_enable’] = true;
gitlab_rails[‘smtp_address’] = ‘10.x.x.x’;
gitlab_rails[‘smtp_port’] = 25;”
–publish 443:443 --publish 80:80 --publish 2289:22
–name gitlab
–restart always
–volume /srv/gitlab/config:/etc/gitlab:Z
–volume /srv/gitlab/logs:/var/log/gitlab:Z
–volume /srv/gitlab/data:/var/opt/gitlab:Z
gitlab/gitlab-ce:latest