Skip to content

ideabosque/docker-neo4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Neo4j

To install Docker Compose for Neo4j, follow these steps:

1. Install Docker

If you don't already have Docker installed, follow the instructions for your operating system:

  • Linux:

    sudo apt-get update
    sudo apt-get install -y docker.io

    Add your user to the Docker group to avoid using sudo:

    sudo usermod -aG docker $USER
  • macOS/Windows: Install Docker Desktop from Docker's official website.


2. Install Docker Compose

Most recent versions of Docker Desktop include Docker Compose. To verify:

docker compose version

If not installed, use the following instructions:

  • Linux:

    sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
  • Verify Installation:

    docker-compose --version

3. Set Up Docker Compose for Neo4j

  1. Create a docker-compose.yml File:

    Create a file named docker-compose.yml with the following content:

    version: '3.8'
    
    services:
      neo4j:
        image: neo4j:latest
        container_name: neo4j
        ports:
          - "7474:7474"  # Neo4j Browser
          - "7687:7687"  # Bolt Protocol
        environment:
          NEO4J_AUTH: "neo4j/your_password"  # Replace with your desired password
        volumes:
          - neo4j_data:/data
          - neo4j_logs:/logs
          - neo4j_import:/import
          - neo4j_plugins:/plugins
    
    volumes:
      neo4j_data:
      neo4j_logs:
      neo4j_import:
      neo4j_plugins:

    Replace your_password with a strong password for your Neo4j database.

  2. Start Neo4j Container:

    docker-compose up -d

    This command will pull the Neo4j image, create a container, and start it in detached mode.


4. Access Neo4j

  • Neo4j Browser: Open your browser and navigate to http://localhost:7474.
  • Default Credentials:
    • Username: neo4j
    • Password: Use the one you specified in NEO4J_AUTH.

5. Stop Neo4j

To stop the container, run:

docker-compose down

You now have a fully functional Neo4j database running with Docker Compose! Let me know if you encounter any issues.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors