Docker Compose setting for APOC installation

I have docker compose file
neo:
image: neo4j:latest
ports:
- '7474:7474'
- '7473:7473'
- '7687:7687'
expose:
- 7474
environment:
- NEO4J_dbms_security_procedures_unrestricted=apoc.*
- NEO4J_apoc_import_file_enabled=true
- NEO4J_apoc_export_file_enabled=true
- NEO4J_apoc_import_file_use__neo4j__config=true
- NEO4J_dbms_shell_enabled=true
- NEO4J_AUTH=user/password
- NEO4J_HEAP_MEMORY=4G
- NEO4J_CACHE_MEMORY=2G
user: ${CURRENT_UID}
volumes:
- "neo-data:/data"
- "neo-data:/conf"
- "neo-data:/plugins"
- "neo-data:/import"
- "neo-data:/logs"

I was expecting the Neo4j container will come up with APOC installed in it .
There was no problem in Neo4j server but /plugins folder was empty also CALL apoc.config.list() was throwing error "ProcedurenotFound ..... "

To install APOC at the container I tried -

  1. cd /plugins
  2. curl -L https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/3.5.0.2/apoc-3.5.0.2-all.jar -O
    inside the Neo4j --- This command downloaded the APOC jar into plugins
  3. Restarted the container
  4. Tried CALL apoc.config.list() and it worked.

Question: Is there any way to get installed the APOC using docker compose file itself?

This works for me:

version: '3.7'
services:
  neo4j:
    image: neo4j:4.4.7
    hostname: neo4j
    container_name: neo4j
    ports:
      - "7474:7474"
      - "7687:7687"
    environment:
      - NEO4JLABS_PLUGINS=["apoc"]

A bit late to the game, but this works for me:

version: '3.7'
services:
  neo4j:
    image: neo4j:4.4.7
    hostname: neo4j
    container_name: neo4j
    ports:
      - "7474:7474"
      - "7687:7687"
    environment:
      - NEO4JLABS_PLUGINS=["apoc"]

Update: Oops sorry, I didn't realise that someone had already answered it correctly and their post was hidden behind the 'More replies' button!