Docker image with nginx virtual host


I am having issues setting up docker image to work with external nginx service.
My gitlab.rb contains

  external_url ''
  web_server['external_users'] = ['nginx']
  nginx['enable'] = false

Also I exposed the gitlab-workhorse unix-socket as volume for the container.

The external nginx config has
upstream gitlab-workhorse {
server unix:/var/opt/gitlab/gitlab-workhorse/socket fail_timeout=0;

My container starts as usual but nginx receives

==> /var/log/nginx/gitlab_error.log <==
2018/01/27 13:32:07 [crit] 18254#0: *18 connect() to unix:/var/opt/gitlab/gitlab-workhorse/socket failed (13: Permission denied) while connecting to upstream, client: X.X.X.X, server:, request: "GET /favicon.ico HTTP/1.1", upstream: "http://unix:/var/opt/gitlab/gitlab-workhorse/socket:/favicon.ico", host: "", referrer: ""

I checked the socket permissions in the container and it uses uid and gid 998 (git user), and when is exported by docker is set to chrony:input gid and uid 998.
I tried to change the effective user for nginx workers but is not switching to chrony user.

Is there anything I can do to allow the connection to that unix socket ?
Can someone please help me with some options