Skip to content

Instantly share code, notes, and snippets.

@cj2001
Created May 14, 2021 17:58
Show Gist options
  • Save cj2001/0b6147c2605dbaa24066a07e693928fe to your computer and use it in GitHub Desktop.
Save cj2001/0b6147c2605dbaa24066a07e693928fe to your computer and use it in GitHub Desktop.
Networks Neo4j and Jupyter containers
version: '3.7'
services:
neo4j:
image: neo4j:4.2.3-enterprise
container_name: "neo-gds1.5"
volumes:
- $HOME/graph_data/my_data:/data
- $HOME/graph_data/my_data:/var/lib/neo4j/import
ports:
- "7474:7474"
- "7687:7687"
environment:
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
- NEO4J_AUTH=neo4j/1234
- NEO4JLABS_PLUGINS=["apoc", "graph-data-science"]
- apoc.import.file.enabled=true
# - NEO4J_dbms_memory_pagecache_size=4G
# - NEO4j_dbms_memory_heap_initial__size=4G
# - NEO4J_dbms_memory_heap_max__size=8G
networks:
- neo_net
jupyterlab:
build:
context: .
dockerfile: Dockerfile
ports:
- "8888:8888"
volumes:
- ./notebooks:/home/jovyan/work
links:
- neo4j
networks:
- neo_net
networks:
neo_net:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment