[GeoNode-users] Configure PostGIS Database over IP or Domain
Jose Cáceres
jose.atyus at gmail.com
Mon May 11 12:50:27 PDT 2020
Hi,
I've installed Geonode Core on a Ubuntu server using Docker by following
this instructions:
https://docs.geonode.org/en/master/install/core/index.html#docker
Right now, as default, the PostGIS database is running on localhost, but I
would like to access the layers on Geoserver through QGIS on my Desktop and
edit layers from there and push it back to Geoserver using my domain or the
local IP as the Database Host.
Si my question is if there is a way to define a environmental variable,
like DATABASE_HOST, on the docker composer file to override the localhost,
and where does that variable should be, over the django container variables
or over the db container.
This is how my docker file is configure right now:
version: '2.2'
services:
django:
build: .
# Loading the app is defined here to allow for
# autoreload on changes it is mounted on top of the
# old copy that docker added when creating the image
volumes:
- '.:/usr/src/app'
environment:
- DEBUG=False
- GEONODE_LB_HOST_IP=<mydomain>
- GEONODE_LB_PORT=443
- SITENAME = 'Geoportal OUOT'
- SITEURL=https://<mydomain>/
- ALLOWED_HOSTS=['<mydomain>', ]
- GEOSERVER_PUBLIC_LOCATION=https:// <mydomain> /geoserver/
- GEOSERVER_WEB_UI_LOCATION=https:// <mydomain> /geoserver/
geoserver:
environment:
- GEONODE_LB_HOST_IP= <mydomain>
- GEONODE_LB_PORT=443
Thanks,
José
--
José David Cáceres
Ingeniero Ambiental
Máster en Tecnologías de la Información Geográfica
e-mail: jose.atyus at gmail.com
[image: Mailtrack]
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Remitente
notificado con
Mailtrack
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
11/05/20
13:48:46
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20200511/50a7ff11/attachment.html>
More information about the geonode-users
mailing list