geonetwork / docker-geonetwork

Official Docker image repository for GeoNetwork
35 stars 39 forks source link

4.x docker images - postgresql environment variables are ignored #90

Closed pmauduit closed 2 years ago

pmauduit commented 2 years ago

It seems that the docker-entrypoint.sh is missing some logic to configure GN to use a postgresql database, if we compare both scripts here:

pmauduit commented 2 years ago

Ok, I was still using former environment variables (valid for previous versions). Using the following made it work:

      GEONETWORK_DB_TYPE: postgres
      GEONETWORK_DB_HOST: database
      GEONETWORK_DB_PORT: 5432
      GEONETWORK_DB_NAME: geonetwork
      GEONETWORK_DB_USERNAME: geonetwork
      GEONETWORK_DB_PASSWORD: geonetwork

I did not find them in the startup script, this is why I was confused, sorry for the noise.