> 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/usage/faq/general/how-to-run-neo4j.md).

# How to run Neo4j?

## Run Neo4j inside docker

1\. Enrich the `services` section of the `docker-compose.yml` of the [install with Docker](/datashare/local-mode/install-with-docker.md) page, with the following Neo4j service:

{% code fullWidth="true" %}

```yaml
...
services:
    neo4j:
      image: neo4j:5-community
      environment:
        NEO4J_AUTH: none
        NEO4J_PLUGINS: '["apoc"]'
      ports:
        - 7474:7474
        - 7687:7687
      volumes:
        - neo4j_conf:/var/lib/neo4j/conf
        - neo4j_data:/var/lib/neo4j/data
```

{% endcode %}

Make sure not to forget the [APOC plugin](https://neo4j.com/developer/neo4j-apoc/) (`NEO4J_PLUGINS: '["apoc"]'`).

2\. Enrich the `volumes` section of the `docker-compose.yml` of the [install with Docker](/datashare/local-mode/install-with-docker.md) page, with the following Neo4j volumes:

{% code fullWidth="true" %}

```yaml
volumes:
  ...
  neo4j_data:
    driver: local
  neo4j_conf:
    driver: local
```

{% endcode %}

3\. Start the `neo4j` service using:

{% code fullWidth="true" %}

```bash
docker compose up -d neo4j
```

{% endcode %}

## Run Neo4j Desktop

1. Install with [Neo4j Desktop](https://neo4j.com/docs/desktop-manual/current/), follow installation instructions found [here](https://neo4j.com/docs/desktop-manual/current/installation/)
2. [Create a new local DBMS](https://neo4j.com/docs/desktop-manual/current/operations/create-dbms/) and save your password for later
3. If the installer notifies you of any ports modification, check the [DBMS settings](https://neo4j.com/docs/desktop-manual/current/visual-tour/#dbms) and save the `server.bolt.listen_address` for later
4. Make sure to install the [APOC Plugin](https://neo4j.com/docs/desktop-manual/current/operations/install-plugin/)

## Additional options

Additional options to install Neo4j are [listed here](https://neo4j.com/docs/operations-manual/current/installation/).


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://icij.gitbook.io/datashare/usage/faq/general/how-to-run-neo4j.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
