[GeoNode-users] Unable to redirect GeoServer default port

Dev Gis deviirmr at gmail.com
Wed Apr 22 04:36:13 PDT 2020


Hi Toni,
I have updated the URL and port at
 https://yourdomain.org/de/admin/oauth2_provider/application and for
geoserver : https://yourdomain.org/geoserver/web/wicket/page?5
but still, it is redirected port 80
For your reference, I have included a config detail

Any suggestion...

Regards
Deb
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
What I am trying
I have installed a GeoNode docker on VM with the different port  (: 90 ) so
that it should not conflict with another running docker container.
Even after changing the port on docker-compose.yml and
docker-compose.override.localhost.yml file, GeoServer is still it
redirected to port:80 instant of port:90

Am I missing anything in the configuration



Here is the   docker-compose.override.localhost.yml configuration

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=True
      - GEONODE_LB_HOST_IP=10.0.0.117
      - GEONODE_LB_PORT=90
      - SITEURL=http:// 10.0.0.117  :90/
      - ALLOWED_HOSTS=['10.0.0.117','*','localhost']
      - GEOSERVER_PUBLIC_LOCATION=http:// 10.0.0.117:90 /geoserver/
      - GEOSERVER_WEB_UI_LOCATION= http:// 10.0.0.117:90 /geoserver/

  geoserver:
    environment:
      - GEONODE_LB_HOST_IP=  x.x.x.x.x:90
      - GEONODE_LB_PORT=90
      - PUBLIC_PORT=90



  Here is the  docker-compose.yml configuration

version: '2.2'
services:

  db:
    image: geonode/postgis:11
    restart: unless-stopped
    container_name: db4${COMPOSE_PROJECT_NAME}
    stdin_open: true
    # tty: true
    labels:
        org.geonode.component: db
        org.geonode.instance.name: geonode
    volumes:
      - dbdata:/var/lib/postgresql/data
      - dbbackups:/pg_backups
    env_file:
      - ./scripts/docker/env/${SET_DOCKER_ENV}/db.env

  geoserver:
    image: geonode/geoserver:2.16.2
    restart: unless-stopped
    container_name: geoserver4${COMPOSE_PROJECT_NAME}
    stdin_open: true
    # tty: true

    labels:
        org.geonode.component: geoserver
        org.geonode.instance.name: geonode
    depends_on:
      - db
      - data-dir-conf
    volumes:
      - geoserver-data-dir:/geoserver_data/data
      - backup-restore:/backup_restore
    env_file:
      - ./scripts/docker/env/${SET_DOCKER_ENV}/geoserver.env

  django:
    restart: unless-stopped
    image: geonode/geonode:latest
    container_name: django4${COMPOSE_PROJECT_NAME}
    stdin_open: true
    # tty: true
    labels:
        org.geonode.component: django
        org.geonode.instance.name: geonode
    depends_on:
      - db
      - data-dir-conf
    # command: paver start_django -b 0.0.0.0:8000
    # command: uwsgi --ini uwsgi.ini
    volumes:
      - statics:/mnt/volumes/statics
      - geoserver-data-dir:/geoserver_data/data
      - backup-restore:/backup_restore
    env_file:
      - ./scripts/docker/env/${SET_DOCKER_ENV}/django.env

  geonode:
    image: geonode/nginx:${SET_DOCKER_ENV}
    restart: unless-stopped
    container_name: nginx4${COMPOSE_PROJECT_NAME}
    stdin_open: true
    # tty: true
    labels:
        org.geonode.component: nginx
        org.geonode.instance.name: geonode
    depends_on:
      - django
      - geoserver
    ports:
      - "90:80"
    volumes:
      - statics:/mnt/volumes/statics

  data-dir-conf:
    image: geonode/geoserver_data:2.16.2
    restart: on-failure
    container_name: gsconf4${COMPOSE_PROJECT_NAME}
    labels:
        org.geonode.component: conf
        org.geonode.instance.name: geonode
    command: /bin/true
    volumes:
      - geoserver-data-dir:/geoserver_data/data

volumes:
  statics:
    name: ${COMPOSE_PROJECT_NAME}-statics
  geoserver-data-dir:
    name: ${COMPOSE_PROJECT_NAME}-gsdatadir
  dbdata:
    name: ${COMPOSE_PROJECT_NAME}-dbdata
  dbbackups:
    name: ${COMPOSE_PROJECT_NAME}-dbbackups
  rabbitmq:
    name: ${COMPOSE_PROJECT_NAME}-rabbitmq
  backup-restore:
    name: ${COMPOSE_PROJECT_NAME}-backup-restore



[image: image.png]


[image: image.png]

[image: image.png]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20200422/609a6ef9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 67363 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20200422/609a6ef9/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 53415 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20200422/609a6ef9/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 95945 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20200422/609a6ef9/attachment-0005.png>


More information about the geonode-users mailing list