# Bahmni docker installation along existing nginx reverse proxy

**URL:** <https://talk.openmrs.org/t/bahmni-docker-installation-along-existing-nginx-reverse-proxy/42702>\
**Category:** Bahmni\
**Created:** [May 12, 2024, 4:50pm UTC](https://talk.openmrs.org/t/bahmni-docker-installation-along-existing-nginx-reverse-proxy/42702 "2024-05-12T16:50:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tebokaroa](https://talk.openmrs.org/letter_avatar/tebokaroa/32/5_5575768a8748004e209b776fc1b2916d.png) [@tebokaroa](https://talk.openmrs.org/u/tebokaroa)\
**Post date:** [May 12, 2024, 4:50pm UTC](https://talk.openmrs.org/t/bahmni-docker-installation-along-existing-nginx-reverse-proxy/42702/1 "2024-05-12T16:50:20Z")

</div>

Hello everyone,

I’ve been trying to install Bahmni Lite via docker as documented on the “Getting Started Quickly with Bahmni on Docker” section, alongside an already installed nginx serving as a reverse proxy for other apps, on an ubuntu VPS.

Therefore, I were using the docker-compose.yml found in github `Bahmni/bahmni-docker` . It seems that bahmni has its own proxy listening on port 80 and 443, and after exploring the architecture documentation, I saw it is based on apache.

Since my host nginx service is already using those ports, I changed bahmni proxy’s ports to 7080 and 7443 in order to avoid ports conflicts. The changes I have done from the default configs are given in the embedded screenshot below (because they have localhost links and I couldn’t add more than 2 links as a new member).

Then, I added a server block in my nginx config.

`/etc/nginx/sites-available/test` content : [/etc/nginx/sites-available/test - Pastebin.com](https://pastebin.com/LapzriJw)

Restarted nginx. Then I ran `run-bahmni.sh`

The containers are run successfully. `docker ps` output: [docker ps - Pastebin.com](https://pastebin.com/uf47m6qS)

However, when I try to access `test.mydomain.com` on the browser I get `302 Found` as a Response Header Status. It says “The page isn’t redirecting properly” on Firefox, or “Too many redirections…” on chrome . I expected that nginx will receive the requests and forward them to bahmni’s proxy.

 ![image](https://talk.openmrs.org/uploads/default/original/3X/e/d/ede4db0fc293191f6f48e2151451a5f2a162bfec.png)

Does someone know where in the configuration did I do wrong? Or any solutions to make bahmni work together with nginx ?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![nickchacha](https://talk.openmrs.org/letter_avatar/nickchacha/32/5_5575768a8748004e209b776fc1b2916d.png) [@nickchacha](https://talk.openmrs.org/u/nickchacha)\
**Post date:** [November 8, 2024, 6:46pm UTC](https://talk.openmrs.org/t/bahmni-docker-installation-along-existing-nginx-reverse-proxy/42702/2 "2024-11-08T18:46:38Z")

</div>

@tebokaroa did you ever figure way around this case. I have arrived on the same point. If you did led a pointer and i will forever be thankful 😜
