Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neo4j import folder not linked in Docker volume #462

Open
FrancescoSaverioZuppichini opened this issue Apr 26, 2021 · 2 comments
Open

Neo4j import folder not linked in Docker volume #462

FrancescoSaverioZuppichini opened this issue Apr 26, 2021 · 2 comments
Labels

Comments

@FrancescoSaverioZuppichini
  • Neo4j version: latest from Docker hub
  • Operating system: Ubuntu 20.04 with Docker/Docker-compose

Bug report

If I mount a volume to /import the data doesn't appear in the container and if I write in the /import folder in the container nothing appears in the host folder.

This is my docker-compose file

version: "3"
services:
  neo4j:
    image: neo4j:latest
    hostname: neo4j
    container_name: neo4j
    ports:
      - "7474:7474"
      - "7687:7687"
    volumes:
      - $VOLUMES/neo4j/data:/data
      - $VOLUMES/neo4j/plugins:/plugins
      - $VOLUMES/neo4j/logs:/logs
      - $VOLUMES/neo4j/import:/import

    environment:
      - NEO4J_AUTH=neo4j/test
    network_mode: host

Steps to reproduce

  1. Pull the image: docker pull neo4j:latest
  2. Create the previous docker-compose file
  3. Run it
  4. Attach a shell to the container, cd /import and touch foo.txt
  5. foo.txt is not in the volume $VOLUMES/neo4j/import

Expected behavior

The volume should the correct linked to /import

Actual behavior

The volume is not linked to /import

@paldeep-singh
Copy link

Were you able to fix this? I am currently having the same issue.

@ThomasThelen
Copy link

This is how I mount local data to the neo4j container, without issue

services:
  neo4j:
    image: neo4j:5.11.0-community-bullseye
    container_name: neo4j
    ports:
      - "7474:7474"
      - "7687:7687"
    environment:
      - NEO4J_AUTH=neo4j/neo4j1234
    volumes:
      - some/local.dir/with/import/data:/var/lib/neo4j/import

@mnd999 mnd999 transferred this issue from neo4j/neo4j Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants