> For the complete documentation index, see [llms.txt](https://icij.gitbook.io/datashare/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://icij.gitbook.io/datashare/server-mode/create-the-neo4j-graph/run-datashare-with-the-neo4j-plugin.md).

# Install Neo4j plugin

## Install the Neo4j plugin

Install the Neo4j plugin using the Datashare CLI so that users can access it from the frontend:

```bash
docker compose exec datashare_web /entrypoint.sh \
  plugin install datashare-plugin-neo4j-graph-widget
```

Installing the plugin installs the `datashare-plugin-neo4j-graph-widget` plugin inside `/home/datashare/plugings` and will also install the `datashare-extension-neo4j` backend extension inside `/home/datashare/extensions`. These locations can be changed by updating the `docker-compose.yml`.

## Configure the Neo4j extension

Update the `docker-compose.yml` to reflect your [Neo4j docker service settings](/datashare/usage/faq/general/how-to-run-neo4j.md#run-neo4j-inside-docker).

{% code fullWidth="true" %}

```yaml
...
services:
    datashare_web:
      ...
      environment:
        - DS_DOCKER_NEO4J_HOST=neo4j
        - DS_DOCKER_NEO4J_PORT=7687
        - DS_DOCKER_NEO4J_SINGLE_PROJECT=secret-project  # This is for community edition only
```

{% endcode %}

If your choose a different Neo4j user or set a password for your Neo4j user make sure to also set `DS_DOCKER_NEO4J_USER` and `DS_DOCKER_NEO4J_PASSWORD`.

**When running `Neo4j Community Edition`, set the `DS_DOCKER_NEO4J_SINGLE_PROJECT` value**. In community edition, the Neo4j DBMS is restricted to a single database. Since Datashare supports multiple projects, you must set the `DS_DOCKER_NEO4J_SINGLE_PROJECT` with the name of the project which will use Neo4j plugin. **Other projects won't be able to use the Neo4j plugin**.

## Restart Datasahre

After installing the plugin a restart might be needed for the plugin to display:

```
docker compose restart datashare_web
```

## Next step

You can now [create the graph](/datashare/server-mode/create-the-neo4j-graph/create-and-update-the-graph.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://icij.gitbook.io/datashare/server-mode/create-the-neo4j-graph/run-datashare-with-the-neo4j-plugin.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
