# Proxy a local webserver

**URL:** <https://forums.docker.com/t/proxy-a-local-webserver/47854>\
**Category:** Docker Desktop\
**Tags:** macos\
**Created:** [March 14, 2018, 10:57am UTC](https://forums.docker.com/t/proxy-a-local-webserver/47854 "2018-03-14T10:57:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![richardhj](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@richardhj](https://forums.docker.com/u/richardhj)\
**Post date:** [March 14, 2018, 10:57am UTC](https://forums.docker.com/t/proxy-a-local-webserver/47854/1 "2018-03-14T10:57:28Z")

</div>

I have a docker setting with an nginx reverse proxy (+ letsencrypt support) on port 80 and 443 (this is my setup: [Hosting multiple SSL-enabled sites with Docker and Nginx - SSD Nodes](https://blog.ssdnodes.com/blog/tutorial-extending-docker-nginx-host-multiple-websites-ssl/))

Because I have another web service on the host machine, I need a docker container, that proxies localhost:1111 and localhost:2222, so that I can access these service on [default.example.org:80](http://default.example.org:80) and :443.  
FYI: It is the profilemanager of macOS Server that I relocated on these ports.

Thanks.

---

<div class="post-metadata">

**Author:** ![richardhj](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@richardhj](https://forums.docker.com/u/richardhj)\
**Post date:** [March 15, 2018, 9:30pm UTC](https://forums.docker.com/t/proxy-a-local-webserver/47854/2 "2018-03-15T21:30:34Z")

</div>

I’m not sure whether this is just to obvious and it’s just me not.

However: I want a docker container, that displays and acts like `localhost:1111`. I am using docker-compose.

---

<div class="post-metadata">

**Author:** ![richardhj](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@richardhj](https://forums.docker.com/u/richardhj)\
**Post date:** [July 7, 2018, 6:00pm UTC](https://forums.docker.com/t/proxy-a-local-webserver/47854/3 "2018-07-07T18:00:03Z")

</div>

Nobody having a clue for me?
