# Running Keycloak on multiple containers

**URL:** <https://forum.keycloak.org/t/running-keycloak-on-multiple-containers/3056>\
**Category:** Getting advice\
**Created:** [June 1, 2020, 8:08am UTC](https://forum.keycloak.org/t/running-keycloak-on-multiple-containers/3056 "2020-06-01T08:08:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aragon](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@aragon](https://forum.keycloak.org/u/aragon)\
**Post date:** [June 1, 2020, 8:08am UTC](https://forum.keycloak.org/t/running-keycloak-on-multiple-containers/3056/1 "2020-06-01T08:08:25Z")

</div>

Hi folks,

I have a Keycloak setup running on my server and it is running on port 8080 in a docker container. Now I would like to run an another Keycloak on the same server in a docker container. So I have used the same command to run the docker container and it is as follows

```
docker run -p 8087:8087 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin quay.io/keycloak/keycloak:10.0.1

```

I have changed the port to 8087. I got the Keycloak running on this port. But I can’t access it from the browser.It says This site can’t be reached. I have checked the logs, I couldn’t see any errors and also checked the firewall. Everything looks good. Can someone help me?

---

<div class="post-metadata">

**Author:** ![jangaraj](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/jangaraj/32/5175_2.png) [@jangaraj](https://forum.keycloak.org/u/jangaraj)\
**Post date:** [June 1, 2020, 9:09am UTC](https://forum.keycloak.org/t/running-keycloak-on-multiple-containers/3056/2 "2020-06-01T09:09:34Z")

</div>

Just remap port 8080 from the container to the port 8087 on the host OS:

```auto
-p 8087:8080

```

See [https://docs.docker.com/config/containers/container-networking/](https://docs.docker.com/config/containers/container-networking/) for more details

---

<div class="post-metadata">

**Author:** ![aragon](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@aragon](https://forum.keycloak.org/u/aragon)\
**Post date:** [June 1, 2020, 10:16am UTC](https://forum.keycloak.org/t/running-keycloak-on-multiple-containers/3056/3 "2020-06-01T10:16:08Z")

</div>

It is working, Thanks 🙂
