Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Cannot change the database host in geofence-datasource-ovr.properties.j2 geonode/geoserver:2.23.0 #94

@geogeek11

Description

@geogeek11

I have to use a dockerized geonode 4.1.2 but with an external DB. I have changed the .env file accordingly and the Geoserver stores but the geofence kept not working.

After some research, I found that I can edit the file /templates/geofence/geofence-datasource-ovr.properties.j2 in the geonode/geoserver container so to override the file geofence-datasource-ovr.properties in the geoserver datadir, but this file is part of the image.

This is the initial value of geofenceDataSource.url in the file with the database host "db" hardcoded:
geofenceDataSource.url=jdbc:postgresql://db:5432/{{ GEONODE_GEODATABASE }}

I want to make the database host as a parameter from the .env file by replacing the geofenceDataSource.url with the following one :

geofenceDataSource.url=jdbc:postgresql://{{ DATABASE_HOST }}:5432/{{ GEONODE_GEODATABASE }}

Please could you release a new version of the image with this edit, as I don't have access to the source code of image geonode/geoserver:2.23.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions