docker compose neo4j

dockerneo4j

Docker Compose is a tool for defining and running multi-container Docker applications. You can use Docker Compose to easily set up and run a Neo4j database in a Docker container.

Here’s an example docker-compose.yml file that starts a Neo4j container with a mounted data directory and exposes the Neo4j Bolt and HTTP ports:

version: '3.7'

services:
  neo4j:
    image: neo4j:latest
    container_name: neo4j
    ports:
      - "7474:7474"
      - "7687:7687"
    volumes:
      - ./data:/data
    environment:
      - NEO4J_AUTH=neo4j/password

To start the container, run the following command in the same directory as the docker-compose.yml file:

docker-compose up -d

This will start the Neo4j container in the background. You can then access the Neo4j browser at http://localhost:7474, and use Bolt to connect to the database from your applications at bolt://localhost:7687.

You can stop the container using the following command:

docker-compose stop

And remove the container with the following command:

docker-compose down

You can find more information about using Docker Compose with Neo4j in the Neo4j documentation: https://neo4j.com/docs/operations-manual/current/deployment/docker/




Other Article on Tag docker


  1. - cakephp docker
  2. - docker compose neo4j