Hi,<div><div><br></div><div>interesting use case. you should be able to achieve this:</div><div><br></div><div><ul><li>create two different database services in you compose file and declare them as link for the django service, one of them has to be based on a postgis image</li><li>add on each of their dockerfile a specific script that creates the geonode and geonode_data databases in order to have two distinct images</li><li>declare two different DATABASE_URL env variables for previous database services</li><li>use the env variables to instruct the piece of database settings for geonode and geonode_data</li></ul><div>Hope this helps, let's know</div></div><div><br></div><div>Francesco</div><br><signature>Sent from <a href="https://link.nylas.com/link/43o9gzlmd58gqwkxv3di3wjcc/local-d264c7ff-eeff/0?redirect=https%3A%2F%2Fnylas.com%2Fnylas-pro%3Fref%3Dn1&r=Z2Vvbm9kZS11c2Vyc0BsaXN0cy5vc2dlby5vcmc=">Nylas Pro</a>, the most powerful email app for work</signature></div><img class="n1-open" width="0" height="0" style="border:0; width:0; height:0;" src="https://link.nylas.com/open/43o9gzlmd58gqwkxv3di3wjcc/local-d264c7ff-eeff?r=Z2Vvbm9kZS11c2Vyc0BsaXN0cy5vc2dlby5vcmc=">
<div class="gmail_quote nylas-quote nylas-quote-id-akaieyfq28m1xf20rxcp1vsru">
<br>
On feb 2 2017, at 10:10 am, Zizi Jama <mazizi.jama@gmail.com> wrote:
<br>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">Dear List,<div><br /></div><div>I would like to separate the geonode database that stores the configuration data and spatial data. I have not been able to do this with the docker-compose.yml file.<br /><div><br /></div><div>According to the documentation - <a href="http://training.geonode.geo-solutions.it/002_install_and_admin/002_geonode_install/create_geonode_db.html&r=Z2Vvbm9kZS11c2Vyc0BsaXN0cy5vc2dlby5vcmc=">http://training.geonode.geo-solutions.it/002_install_and_admin/002_geonode_install/create_geonode_db.html</a></div><div><br /></div><div>the following databases are created during installation with user geonode:</div><div>geonode (this stores geonode configuration data)</div><div>geonode_data (posting is enabled here)</div><div><br /></div><div>I used the following steps:</div><div><br /></div><div><pre style="box-sizing:border-box;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:13.6px;margin-top:0px;margin-bottom:16px;font-stretch:normal;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(247,247,247);border-radius:3px;color:rgb(51,51,51)"><br /># build the docker container
docker-compose build
# run the docker container
docker-compose up
# turn it off
docker-compose down</pre><pre style="box-sizing:border-box;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:13.6px;margin-top:0px;margin-bottom:16px;font-stretch:normal;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(247,247,247);border-radius:3px;color:rgb(51,51,51)"><pre style="font-size:13.6px;box-sizing:border-box;font-family:consolas,"liberation mono",menlo,courier,monospace;margin-top:0px;margin-bottom:16px;font-stretch:normal;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;border-radius:3px"># create database
make sync</pre></pre></div><div>This then creates a single database - postgres (and the geonode configuration data is then installed on this database).</div><div><br /></div><div><br /></div><div>The two databases named are not created and I do not know which setting must I change to enable this.</div><div><br /></div><div>Regards,</div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div></div></div>
</blockquote>
</div>