# Passbolt not accessible using docker-compose

**URL:** <https://community.passbolt.com/t/passbolt-not-accessible-using-docker-compose/1078>\
**Category:** Installation Issues\
**Created:** [October 1, 2018, 9:40am UTC](https://community.passbolt.com/t/passbolt-not-accessible-using-docker-compose/1078 "2018-10-01T09:40:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![allenchun](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/allenchun/32/314_2.png) [@allenchun](https://community.passbolt.com/u/allenchun)\
**Post date:** [October 1, 2018, 9:40am UTC](https://community.passbolt.com/t/passbolt-not-accessible-using-docker-compose/1078/1 "2018-10-01T09:40:14Z")

</div>

I installed the passbolt using docker-compose. I followed the [https://help.passbolt.com/hosting/install/ce/docker.html](https://help.passbolt.com/hosting/install/ce/docker.html).

I changed the port of **passbolt** to **9000** instead of **80** in the docker-compose.yml.

I tried to run the `docker-compose -f docker-compose.yml up` and checked the **[https://passbolt.local](https://passbolt.local)** in the browser and I cannot load the passbolt.

I also tried to create account

 ![41](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/1X/412535fb66e683c0b9b44102eb441201f353415b.png) and follow the link from the result and still cannot access the passbolt from the browser. Why is it not loading? Thanks

---

<div class="post-metadata">

**Author:** ![diego](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/diego/32/16_2.png) [@diego](https://community.passbolt.com/u/diego)\
**Post date:** [October 1, 2018, 9:48am UTC](https://community.passbolt.com/t/passbolt-not-accessible-using-docker-compose/1078/2 "2018-10-01T09:48:05Z")

</div>

Hi!

Sorry you experience problems with passbolt composer setup. Could you provide the changes you made and which problem are you facing when loading your passbolt instance website?

---

<div class="post-metadata">

**Author:** ![allenchun](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/allenchun/32/314_2.png) [@allenchun](https://community.passbolt.com/u/allenchun)\
**Post date:** [October 1, 2018, 9:52am UTC](https://community.passbolt.com/t/passbolt-not-accessible-using-docker-compose/1078/3 "2018-10-01T09:52:16Z")

</div>

This is still the default values from the downloaded passbolt-docker

 ![07](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/1X/6393f3fbbb333114f2c46d73e4c9af0b0371e653.png)

on the right side I change the ports of **db** to **3306** \*\*  
and the passbolt container port to **9000:9000** instead of **80** because I keep getting conflicts.

---

<div class="post-metadata">

**Author:** ![diego](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/diego/32/16_2.png) [@diego](https://community.passbolt.com/u/diego)\
**Post date:** [October 1, 2018, 9:56am UTC](https://community.passbolt.com/t/passbolt-not-accessible-using-docker-compose/1078/4 "2018-10-01T09:56:51Z")

</div>

Thanks for the information!

Just another question, do you have an entry on your /etc/hosts pointing passbolt.local to 127.0.0.1 ?

---

<div class="post-metadata">

**Author:** ![allenchun](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/allenchun/32/314_2.png) [@allenchun](https://community.passbolt.com/u/allenchun)\
**Post date:** [October 1, 2018, 10:11am UTC](https://community.passbolt.com/t/passbolt-not-accessible-using-docker-compose/1078/5 "2018-10-01T10:11:57Z")

</div>

@diego  
Yup I added **127.0.0.1 passbolt.local** in my **/etc/hosts/** and when I access it from the browser **[http://passbolt.local](http://passbolt.local)** I returns my default **nginx** page because it’s dedicated for my 127.0.0.1

Correct me if I’m wrong, the port **9000:9000** in the docker-compose passbolt container is the passbolt’s default port? if so do I need to change also the port to **9000** in the /etc/hosts ?

Thanks for your response

---

<div class="post-metadata">

**Author:** ![diego](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/diego/32/16_2.png) [@diego](https://community.passbolt.com/u/diego)\
**Post date:** [October 1, 2018, 10:24am UTC](https://community.passbolt.com/t/passbolt-not-accessible-using-docker-compose/1078/6 "2018-10-01T10:24:08Z")

</div>

Passbolt container by default comes with 2 ports open 80 and 443.

- Port 80: open for people who do SSL offloading before the requests arrives to passbolt container
- Port 443: for standalone setups with SSL

By default passbolt sets `PASSBOLT_SSL_FORCE` env variable to true so any request arriving to `http://passbolt.local` gets redirected to `https://passbolt.local`. In your case any request arriving to `http://passbolt.local:9000` gets redirected to `https://passbolt.local`.

I guess you want to redirect host port 9000 to port 80 of passbolt container to match what I described above. In that case, your docker-compose.yml should look like:

```auto
    ports:
      - 9000:80
      - 443:443

```

---

<div class="post-metadata">

**Author:** ![allenchun](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/allenchun/32/314_2.png) [@allenchun](https://community.passbolt.com/u/allenchun)\
**Post date:** [October 1, 2018, 11:00am UTC](https://community.passbolt.com/t/passbolt-not-accessible-using-docker-compose/1078/7 "2018-10-01T11:00:32Z")

</div>

@diego it’s working now. we’re going to evaluate the community version first. Thanks for your responses.

---

<div class="post-metadata">

**Author:** ![diego](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/diego/32/16_2.png) [@diego](https://community.passbolt.com/u/diego)\
**Post date:** [October 1, 2018, 11:02am UTC](https://community.passbolt.com/t/passbolt-not-accessible-using-docker-compose/1078/8 "2018-10-01T11:02:13Z")

</div>

@allenchun you are welcome, glad to see it’s working now!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/passbolt/original/2X/b/bee7d3f9329f668000d46e9fcb2e5db1e9d31348.svg) [@system](https://community.passbolt.com/u/system)\
**Post date:** [October 6, 2018, 11:02am UTC](https://community.passbolt.com/t/passbolt-not-accessible-using-docker-compose/1078/9 "2018-10-06T11:02:23Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
