Open link in a new tab

Content

Expand project menu

Using an external Postgres DB server with the docker image

Hi,

I am trying to configure the Docker container to use an external postgres database. I've been trying to reconfigure this by setting the environment variable DATABASE_URL e.g.

   -e DATABASE_URL="postgres://openproject:openproject@10.200.0.45:5432/openproject" 

So far I haven't been able to get this to work. I have created the database and the associated roles, but no luck so far.

Anybody got any insight into what steps I need to take to set this up ?

Thanks in advance.

Graham

Message actions

I made some progress with getting this working, to the point where the Docker container will now create the database in my external database server.

What I find now, is that the docker image will exit after 15-30 seconds. 

Any suggestions would be welcome.