Content
You are here:
Using an external Postgres DB server with the docker image
Added by Graham Higgins about 5 years ago
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
Replies (1)
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.