<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false"><div><div>Hi guys,</div><div><br></div><div>I am trying to run the Geonode Docker cluster from within a VM I have running locally on my laptop using Vagrant.</div><div><br></div><div dir="ltr" data-setdir="false">I think it's mostly working because from within the VM I can see some Geonode HTML with the command "curl localhost | grep -i geonode".</div><div dir="ltr" data-setdir="false">However, it is not showing anything when using "curl 192.168.50.4 | grep -i geonode" which is the IP address for the VM using the virtual network interface attached to it.</div><div><br></div><div>So I am assuming I am doing something wrong with this env file content: ALLOWED_HOSTS=['django', 'localhost', '127.0.0.1', '192.168.50.4']</div><div>Is there anything I am missing here? </div><div dir="ltr" data-setdir="false">Why both "localhost" and "<span><span style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">192.168.50.4</span></span>" are not enough?</div><div><br></div><div>The strange thing is that using "sudo netstat -plant" from within the VM I can only see TCP sockets on ports 80 and 443 (Geonode Django), but not e.g. 8080 (Geoserver) or Postgis although "docker ps" shows all the relevant containers up and running:</div><div>CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES</div><div>28948de75df9 geonode/nginx:3.x "/docker-entrypoint.…" 5 hours ago Up 20 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp nginx4ashri2020</div><div>b8b52f8296bc ashri2020_django "/bin/sh -c 'service…" 5 hours ago Up 20 minutes django4ashri2020</div><div>98511731c773 geonode/geoserver:2.17.2 "/usr/local/tomcat/t…" 5 hours ago Up 20 minutes 8080/tcp geoserver4ashri2020</div><div>32552d8a7586 geonode/postgis:11 "docker-entrypoint.s…" 5 hours ago Up 20 minutes 5432/tcp db4ashri2020</div><div>9d30b67cff27 rabbitmq "docker-entrypoint.s…" 18 hours ago Up 20 minutes 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp rabbitmq4ashri2020</div><div><br></div><div>I was able to run the Docker cluster following this doc: https://github.com/GeoNode/geonode-project#start-your-server-using-docker</div><div>basically:</div><div>- cloning https://github.com/GeoNode/geonode-project.git</div><div>- then activating the virtualenv,</div><div>- then installing Django and finally running that command with "django-admin startproject" that generates all the scaffolding (including the ".env" file I modified).</div><div>- Last step: I invoked the Docker cluster with "docker-compose up --build -d db django geoserver geonode".</div><div><br></div><div>What am I doing wrong?</div><div><br></div><div>My idea is to validate that IP 192.168.50.4 from within the VM, before accessing it from outside the VM and make sure ports are forwarded correctly by Vagrant.</div><div>I am assuming that from within the VM I should see some HTML when using "curl" against its assigned IP address 192.168.50.4 - is this correct?</div><div><br></div><div><br></div><div>Thank you</div><div>Alessio G.</div></div><br></div><div><br></div><div><br></div></div></body></html>