A Neo4j container (docker) with initial data in it

后端 未结 2 1705
离开以前
离开以前 2021-01-06 03:46

Other database dockers that I\'ve worked with (like Postgres) have a mechanism to import some initial data into their empty instance once the container starts for the first

2条回答
  •  抹茶落季
    2021-01-06 04:40

    example of docker-compose for Neo4j

    version: '3'
    services:
      # ...
    
      neo4j:
        image: 'neo4j:4.1'
        ports:
          - '7474:7474'
          - '7687:7687'
        volumes:
          - '$HOME/data:/data'
          - '$HOME/logs:/logs'
          - '$HOME/import:/var/lib/neo4j/import'
          - '$HOME/conf:/var/lib/neo4j/conf'
        environment:
          NEO4J_AUTH : 'neo4j/your_password'
        # ...
    

提交回复
热议问题