geonetwork / docker-geonetwork

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

Prepare for relese 4.2.1 #87

Closed juanluisrp closed 1 year ago

juanluisrp commented 2 years ago

This commit adds the gn-ogc-features-api microservice and configures GN to server it through the GN's proxy.

  ogc-api-records-service:
    image: geonetwork/gn-cloud-ogc-api-records-service:0.2.0
    environment:
      SPRING_PROFILES_ACTIVE: standalone
      SPRING_DATASOURCE_URL: jdbc:postgresql://database:5432/geonetwork
      SPRING_DATASOURCE_USERNAME: geonetwork
      SPRING_DATASOURCE_PASSWORD: geonetwork
      GN_BASEURL: http://geonetwork:8080/geonetwork/api
      GN_LEGACY_URL: http://geonetwork:8080/geonetwork
      GN_INDEX_URL: http://elasticsearch:9200
      SERVER_FORWARDHEADERSSTRATEGY: FRAMEWORK

In the Geonetwork service it adds this environment variable for configuring the MicroServicesProxy's targetUri property with the ogc-api-records-service URL:

  geonetwork:
    environment:
      GEONETWORK_MICROSERVICESPROXY_TARGETURI: http://ogc-api-records-service:8080

After that the OGC records API can be accessed at http://localhost:8080/geonetwork/api/collections