# Your server encountered an error (getaddrinfo ENOTFOUND postgres postgres:5432)

**URL:** <https://community.forestadmin.com/t/your-server-encountered-an-error-getaddrinfo-enotfound-postgres-postgres-5432/1798>\
**Category:** Help me!\
**Tags:** setup\
**Created:** [February 8, 2021, 9:01am UTC](https://community.forestadmin.com/t/your-server-encountered-an-error-getaddrinfo-enotfound-postgres-postgres-5432/1798 "2021-02-08T09:01:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raphael\_Didier](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/raphael_didier/32/1465_2.png) [@Raphael\_Didier](https://community.forestadmin.com/u/Raphael_Didier)\
**Post date:** [February 8, 2021, 9:01am UTC](https://community.forestadmin.com/t/your-server-encountered-an-error-getaddrinfo-enotfound-postgres-postgres-5432/1798/1 "2021-02-08T09:01:39Z")

</div>

## Expected behavior

I’m expecting to be able to visual my data.

## Actual behavior

I setup forest admin with docker (the website gave me the command which worked perfectly). But then I get the kind of error on all the models.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/2/2c17986b89e480af1501f35e9ede775814e7158c.png)

## Failure Logs

the logs tell me:  
[http://localhost:3310/forest/post?fields[post]=description%2Cid%2Ctitle%2Cuser&fields[user]=id&page[number]=1&page[size]=15&searchExtended=0&sort=-id&timezone=Europe%2FParis](http://localhost:3310/forest/post?fields%5Bpost%5D=description%2Cid%2Ctitle%2Cuser&fields%5Buser%5D=id&page%5Bnumber%5D=1&page%5Bsize%5D=15&searchExtended=0&sort=-id&timezone=Europe%2FParis)

resp ==\>

```javascript
{
    "errors": [
        {
            "status": 500,
            "detail": "getaddrinfo ENOTFOUND postgres postgres:5432"
        }
    ]
}

```

Would you have any ideas?

---

<div class="post-metadata">

**Author:** ![anon94532230](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@anon94532230](https://community.forestadmin.com/u/anon94532230)\
**Post date:** [February 8, 2021, 9:04am UTC](https://community.forestadmin.com/t/your-server-encountered-an-error-getaddrinfo-enotfound-postgres-postgres-5432/1798/2 "2021-02-08T09:04:05Z")

</div>

Hi !  
It looks like your database il is not reachable at the address defined in your .env  
Can you check if the right url is defined for `DATABASE_URL` ?

---

<div class="post-metadata">

**Author:** ![Raphael\_Didier](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/raphael_didier/32/1465_2.png) [@Raphael\_Didier](https://community.forestadmin.com/u/Raphael_Didier)\
**Post date:** [February 8, 2021, 9:06am UTC](https://community.forestadmin.com/t/your-server-encountered-an-error-getaddrinfo-enotfound-postgres-postgres-5432/1798/3 "2021-02-08T09:06:52Z")

</div>

Thanks for your quick response!

`DATABASE_URL: postgres://[user]:[pass]@postgres:5432/db`

This is my database url with my actual user and password, same one I use on my server.

---

<div class="post-metadata">

**Author:** ![Raphael\_Didier](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/raphael_didier/32/1465_2.png) [@Raphael\_Didier](https://community.forestadmin.com/u/Raphael_Didier)\
**Post date:** [February 8, 2021, 9:08am UTC](https://community.forestadmin.com/t/your-server-encountered-an-error-getaddrinfo-enotfound-postgres-postgres-5432/1798/4 "2021-02-08T09:08:01Z")

</div>

The docker install worked correctly, so I guess the db was found.

---

<div class="post-metadata">

**Author:** ![anon94532230](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@anon94532230](https://community.forestadmin.com/u/anon94532230)\
**Post date:** [February 8, 2021, 9:57am UTC](https://community.forestadmin.com/t/your-server-encountered-an-error-getaddrinfo-enotfound-postgres-postgres-5432/1798/5 "2021-02-08T09:57:27Z")

</div>

I tried to create a project via docker + postgres and I don’t have any issue on my end.  
Can you try to access your db via the psql cli to check that the connection URL is right ?  
For example, I use `psql -h localhost -p 5435 -U postgres`
