# Self-hosted : baserow crashes with external PostgreSQL

**URL:** https://community.baserow.io/t/self-hosted-baserow-crashes-with-external-postgresql/1145
**Category:** Technical Help
**Tags:** server, docker, self-hosting
**Created:** [August 8, 2022, 10:46am UTC](https://community.baserow.io/t/self-hosted-baserow-crashes-with-external-postgresql/1145 "2022-08-08T10:46:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nicolas](https://community.baserow.io/letter_avatar_proxy/v4/letter/n/67e7ee/32.png) [@Nicolas](https://community.baserow.io/u/Nicolas)
#### Post date: [August 8, 2022, 10:46am UTC](https://community.baserow.io/t/self-hosted-baserow-crashes-with-external-postgresql/1145/1 "2022-08-08T10:46:53Z")

</div>

Hello,  
Having a hard time trying to user the baserow container WITH an external postgresql server.  
Unfortunately, I’m no docker expert. Could you please confirm that for my setup I have to add the DISABLE\_VOLUME\_CHECK statement to my command ?

This is the command I used to lauch the container:

```auto
sudo docker run -d --name baserow \
 -e BASEROW_PUBLIC_URL=https://myserver.lan \
 -e DISABLE_VOLUME_CHECK=yes \
 -p 8080:80 -p 9000:443 \
 -e DATABASE_URL=postgresql://baserow:xxxxx@10.0.0.17:5432/baserow \
 --restart unless-stopped baserow/baserow:1.11.0

```

---

<div class="post-metadata">

### Author: ![petrs](https://community.baserow.io/user_avatar/community.baserow.io/petrs/32/159_2.png) [@petrs](https://community.baserow.io/u/petrs)
#### Post date: [August 8, 2022, 1:52pm UTC](https://community.baserow.io/t/self-hosted-baserow-crashes-with-external-postgresql/1145/2 "2022-08-08T13:52:14Z")

</div>

Hi @Nicolas,

In our docs on using Baserow with docker ([Install with Docker // Baserow](https://baserow.io/docs/installation%2Finstall-with-docker)), we provide the necessary commands:

```auto
docker run \
  -d \
  --name baserow \
  -e BASEROW_PUBLIC_URL=http://localhost \
  -e DATABASE_URL=postgresql://user:pwd@host:port/db \
  -v baserow_data:/baserow/data \
  -p 80:80 \
  -p 443:443 \
  --restart unless-stopped \
  baserow/baserow:1.11.0

```

So comparing this example with yours it seems like you are missing `-v baserow_data:/baserow/data` part to mount a Docker volume for baserow data folder. Have you tried providing it?

---

<div class="post-metadata">

### Author: ![Nicolas](https://community.baserow.io/letter_avatar_proxy/v4/letter/n/67e7ee/32.png) [@Nicolas](https://community.baserow.io/u/Nicolas)
#### Post date: [August 10, 2022, 10:27am UTC](https://community.baserow.io/t/self-hosted-baserow-crashes-with-external-postgresql/1145/3 "2022-08-10T10:27:45Z")

</div>

Hi @petrs,  
Thanks for your answer.  
I added the -v option, I thought it was conflicting with the external db option.  
Now I get a different issue. I will create a new topic with more details.
