# Use the official Neo4j image as the base image FROM neo4j:latest # Set environment variables # ENV NEO4J_AUTH=neo4j/password # ENV NEO4J_dbms_security_procedures_unrestricted=apoc.\\\* # ENV NEO4J_dbms_memory_heap_max__size=512M # Copy custom plugins (if any) to the plugins directory # COPY ./plugins /plugins # Expose ports EXPOSE 7474 7687 # (Optional) Set the working directory # WORKDIR /var/lib/neo4j # (Optional) Copy configuration files (if needed) # COPY ./neo4j.conf /var/lib/neo4j/conf/ # (Optional) Copy initialization scripts (if needed) # COPY ./init-scripts /docker-entrypoint-initdb.d/ # (Optional) Add custom setup commands (if needed) # RUN /var/lib/neo4j/bin/neo4j-admin set-initial-password password # (Optional) Healthcheck for container status # HEALTHCHECK --interval=5s --timeout=3s \ # CMD curl --fail http://localhost:7474 || exit 1 # Start Neo4j CMD ["neo4j"]