[GeoNode-users] GeoNode Docker Start Containers (Julierme Pinheiro)

Julierme Pinheiro juliermeopensourcedeveloper at gmail.com
Wed Aug 1 07:13:07 PDT 2018


Wonderful explanation, Toni.

docker-compose down and docker-compose up: fantastic tasks. Thank you very
much for the hint.

Kind regards

Julierme



On Tue, Jul 31, 2018 at 2:59 AM, Toni Schönbuchner <
toni.schoenbuchner at csgis.de> wrote:

> Dear Julierme,
>
> I´m writing from mobile please excuse short answers:
>
> 1 - # I stopped all containers
>
> $ docker stop nginx4geonode django4geonode geoserver4geonode celery4geonode
> db4geonode rabbitmq4geonode
>
>
> Use instead
> $ docker-compose down
>
>
> I added the IP 198.162.0.2  to PROXY_ALLOWED_HOSTS = ['localhost',
> 'django', 'geonode', '192.168.0.2' ], but django.env also has
> PROXY_ALLOWED_HOST and changed it ALLOWED_HOSTS = ['localhost', 'django',
> 'geonode', '192.168.0.2‘ ]
>
> I got confused here. Should I add the IP only into django.env or should I
> add it to settings.py too? Or should I add it only to seetings.py?
>
>
> docker-compose reads vars from this file here:
> https://github.com/GeoNode/geonode/blob/master/docker-compose.yml#L108
> Then settings.py reads those through with os.getenv (= get environment
> variables)
> https://github.com/GeoNode/geonode/blob/master/docker-compose.yml#L108
>
> So in a docker context these are populated and you can just use the env
> file.
>
> default='django.core.mail.backends.smtp.EmailBackend')
>    EMAIL_HOST = 'smtp.sipa.edu'
>    EMAIL_PORT = 587
>    EMAIL_HOST_USER = 'osgeo.geonode'
>    EMAIL_HOST_PASSWORD = 'passwd
>    EMAIL_USE_TLS = True
>    DEFAULT_FROM_EMAIL = 'osgeo.geonode at sipa.edu'
> else:
>    EMAIL_BACKEND = os.getenv('DJANGO_EMAIL_BACKEND',
>
>
> This must be set in settings as you did:
>
>
> 4.3 settings.py  SITEURL CONFIG
>
> I got confused in here. As I mentioned in item 3, django.env is set as
> GEONODE_LB_HOST_IP=198.162.0.2 and GEONODE_LB_PORT=80. Though SITEURL =
> os.getenv('SITEURL', "http://localhost:8000/") in the seetings.py, do I
> still have to change it to http://198.162.0.2?
>
>
> You can set it here: https://github.com/GeoNode/geonode/blob/master/
> scripts/docker/env/production/django.env#L20
>
>
> I got confused in here. SITEURL is set as SITEURL = "http://localhost/" in
> local_settings, but I set GEONODE_LB_HOST_IP=198.162.0.2 and
> GEONODE_LB_PORT=80 in django.env. Do I still have to change SITEURL to
> SITEURL = "http://198.162.0.2/" in local_settings? Does it make sense to
> have the local_settings.py? Or should I use only settings.py? There was not
> local_settings.py.sample as used to be for Python virtualenv setup, but I
> copied local_settings.py.geoserver.sample as local_settings.py.
>
>
> local_seettings.py comes handy if you commit your changes to a git
> repository.
> You can keep all your personal passwords in local_settings and exclude it
> from commit.
> If you use it or not it´s up to you ;)
>
> Cheers,
>
> Toni
>
>
> -----------------------------------------------
> CSGIS
>
> -----------------------------------------------
> Kolonnadenstraße 1
> <https://maps.google.com/?q=Kolonnadenstra%C3%9Fe+1+04109+Leipzig&entry=gmail&source=g>
> 04109 Leipzig
> <https://maps.google.com/?q=Kolonnadenstra%C3%9Fe+1+04109+Leipzig&entry=gmail&source=g>
> -----------------------------------------------
> Mobil +49/ (0) 176 6680 3198
> Tel  +49/ (0) 341 24 04 738
> Fax  +49/ (0) 341 24 04 73
> Web http://csgis.de
> -----------------------------------------------
>
> Hinweis gemäß § 33 BDSG
> Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist
> ausschließlich für den
> Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie
> diese E-Mail versehentlich
> erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und
> löschen Sie diese Nachricht
> von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung,
> Vervielfältigung, Veränderung,
> Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.
>
> Am 31.07.2018 um 00:24 schrieb geonode-users-request at lists.osgeo.org:
>
> Re: GeoNode Docker Start Containers (Julierme Pinheiro)
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180801/0c06ecae/attachment.html>


More information about the geonode-users mailing list