I’ve an Apache container which redirect these sub domain : 1.example.com & 2.example.com.
These 2 sub domain are redirect to different website folder /www/1 /www/2 thanks to Apache vhost.
But now i installed a Gitlab container (port 8080), and i want to join it by gitlab.example.com (without the port).
This Nginx-based tool automatically redirects requests to the appropriate container (based on the given subdomain using the VIRTUAL_HOST container environment variable).
For your use case, you would simply run the nginx-proxy container (port 80) and run the GitLab container (whatever port you like, provided it is exposed) with the “VIRTUAL_HOST=gitlab.example.com” environment variable.