GitLab using docker-compose behind a Nginx Reverse proxy

You need to change your docker-compose configuration as followed:

external_url must be set to the url of your nginx reverse proxy:
external_url ‘https://git.domain.com

As the bundled Nginx in gitlab now tries to set up on port 443, you need to change this to the desired docker port:
nginx[‘listen_port’] = 9080

you might want to disable https on the internal docker webserver, if you’re running the reverse proxy and the gitlab inside a trusted network:
nginx[‘listen_https’] = false

If you’re doing this, change your Nginx proxy_pass to use plain http
proxy_pass http://192.168.11.110:9080;

2 Likes