Unable to setup Neo4J GDS licence through Docker

Dear,

We've just received our Neo4J GDS license, and I am unable to get the license registered into our docker container.

(we want to avoid creating our own Neo4J.conf and mounting that in as well, so env variables are preferred)

services:
  # Neo4J database
  neo4j:
    container_name: neo4j
    image: neo4j:5.21.0-enterprise
    restart: unless-stopped
    ports:
      - 7474:7474
      - 7687:7687
    # https://neo4j.com/docs/operations-manual/current/docker/ref-settings/
    environment:
      - NEO4J_AUTH=neo4j/pass
      - NEO4J_apoc_export_file_enabled=true
      - NEO4J_apoc_import_file_enabled=true
      - NEO4J_apoc_import_file_use__neo4j__config=true
      - NEO4J_PLUGINS=["apoc", "graph-data-science", "apoc-extended"]
      - NEO4J_dbms_security_auth__minimum__password__length=4
      - NEO4J_dbms_security_procedures_whitelist=gds.*, apoc.*
      - NEO4J_dbms_security_procedures_unrestricted=gds.*, apoc.*
      - NEO4J_db_logs_query_enabled=OFF
      - NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
    volumes:
      - ./neo4j_data/data:/data
      - ./neo4j_data/logs:/logs
      - ./neo4j_data/import:/var/lib/neo4j/import
      - ./neo4j_data/plugins:/plugins
      - ./license/lic.txt:/license/lic.txt
    healthcheck:
      test: wget http://localhost:7474 || exit 1
      interval: 10s
      timeout: 10s
      retries: 10
      start_period: 10s

I'm unable to infer what variable should be used based on the following post:

We have tried NEO4J_gds_enterprise_license_file and a few variations of that, but either Neo starts to crash or the variable seems to be ignored.

Any ideas?

Looking at this you should mount into /licenses

(Note the s at the end)
See if that works

Seems like the docs are indeed misleading. After updating to mount into the /licenses path, the following environment variable did the job:

NEO4J_gds_enterprise_license__file=/licenses/gds

Thanks!