Docker Community Forums

Share and learn in the Docker community.

Mapping Database To A Remote Server

(Kenanidis) #1


I have a rails application and I am using a postgresql database as another image. I have two cases:

  1. Can I map a local path (which contains postgresql database files, such as /var/lib/postgresql/9.4/main/) for the postgresql image file location path?

  2. Can I directly host a remote postgresql database ( for a different server) as my postgresql image database created on my docker environment?