{"id":13567631,"url":"https://github.com/Linkurious/docker-neo4j","last_synced_at":"2025-04-04T01:32:37.722Z","repository":{"id":37037561,"uuid":"295434669","full_name":"Linkurious/docker-neo4j","owner":"Linkurious","description":"Neo4J helper repository to run Neo4j with docker-compose","archived":false,"fork":false,"pushed_at":"2024-05-28T11:15:38.000Z","size":152,"stargazers_count":10,"open_issues_count":6,"forks_count":2,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2024-05-29T02:50:23.839Z","etag":null,"topics":["database","devops","docker","docker-compose","neo4j"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Linkurious.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-14T14:04:44.000Z","updated_at":"2024-05-30T12:49:54.634Z","dependencies_parsed_at":"2023-10-03T17:27:01.163Z","dependency_job_id":"b08f9dad-8e3e-4b34-ac03-c41aac46ccbc","html_url":"https://github.com/Linkurious/docker-neo4j","commit_stats":null,"previous_names":[],"tags_count":64,"template":false,"template_full_name":"Linkurious/docker-app-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Linkurious%2Fdocker-neo4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Linkurious%2Fdocker-neo4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Linkurious%2Fdocker-neo4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Linkurious%2Fdocker-neo4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Linkurious","download_url":"https://codeload.github.com/Linkurious/docker-neo4j/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107815,"owners_count":20884793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","devops","docker","docker-compose","neo4j"],"created_at":"2024-08-01T13:02:36.999Z","updated_at":"2025-04-04T01:32:32.705Z","avatar_url":"https://github.com/Linkurious.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Dockerized repository\n\n## Usage\n\n### Clone\nTo use this repo, you must first clone it locally\n```sh\ngit clone git@github.com:Linkurious/docker-neo4j.git\ncd ./docker-neo4j\n```\n\n### Configure\nConfigure variables in .env. See .env.example for template.\nReasonable defaults are provided. Simply use them when working localy.\n```sh\nln -s .env.example .env\nln -s .env.neo4j.v4.example .env.neo4j.v4.dev\n```\n\n### Start Neo4j\nRun with docker-compose\nNeo4j v4\n\n```sh\ndocker-compose up -d\n```\nNeo4j v5\n\n```sh\ndocker-compose -f docker-compose.v5.yml -f docker-compose.override.yml up -d\n```\n\n### Start Neo4j cluster\nNeo4j v4\n```sh\nln -s .env.neo4j.v4.example .env.neo4j.v4.dev\ndocker-compose -f docker-compose.cluster.v4.yml -f docker-compose.cluster.override.yml up -d\n\n```\nNeo4j v5\n```sh\nln -s .env.neo4j.v5.example .env.neo4j.v5.dev\ndocker-compose -f docker-compose.cluster.v5.yml -f docker-compose.cluster.override.yml up -d\n\n```\n\n## Browse database when working localy\nGo to http://localhost:7474 and connect with the following parameters:\n\n- Connect URL: bolt://localhost:7687\n- Database: _leave empty_\n- Authentication type: Username / Password\n- Username: neo4j\n- Password: neo3j\n\n## Neo4j v3 restore\n```sh\ndocker-compose -f docker-compose.yml -f docker-compose.shell.yml run --rm neo4j bash\n```\nFrom dev env:\n```sh\ndocker-compose -f docker-compose.yml  -f docker-compose.override.yml -f docker-compose.shell.yml run --rm neo4j bash\n```\n\n## Backup and restore (Neo4j V4)\nsee https://neo4j.com/docs/operations-manual/current/backup/\n\nWhen working localy, docker-compose.override.yml adds a local bind mount to the /backups folder.\n\nBackups can be downloaded from Nexus. They have to be decompressed in the ./backups bind mounted folder.\n\nCreate an online backup (command to be executed in the context of the neo4j container, with `docker-compose exec neo4j`):\n```sh\nneo4j-admin backup --backup-dir /backups --database crunchbase-1.0.0\n```\n\nRestore/create from dataset:\n```sh\nneo4j-admin restore --from /datasets/4.2.0/crunchbase --database crunchbase-1.0.0  --verbose\n```\n\nRestore from backup:\n```sh\nneo4j-admin restore --from /backups/4.2.0/crunchbase --database crunchbase-1.0.0 --verbose\n```\nin v3.5.x\n```sh\nneo4j-admin restore --from /backups/3.5.15/fincrime-1.0.0/ --database graph.db\n```\n\nOn first creation of a db, you will have to:\n```\n:use system\nCREATE DATABASE `crunchbase-1.0.0` WAIT;\n```\n\nYou can then check that the db has succesfully been restored with:\n```\n:use crunchbase-1.0.0\nmatch (n) return n limit 10\n```\n\n### Offline load\n```\nneo4j-admin load --from=/datasets/crunch.3.5.15  --database=crunchbase-1.0.0\n```\nand create the database via cypher-shell (the credential are specified in the .env.neo4j.dev at the root of you repository) :\n```\ncypher-shell\nCREATE DATABASE crunchbase;\n```\n\n## Plugins\n### Apoc\nsee https://neo4j.com/labs/apoc/4.4/installation/\n\nDownload the appropriate version of apoc plugin and drop it in the plugins folder:\n```sh\ncurl -L https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/4.4.0.11/apoc-4.4.0.11-all.jar -o plugins/apoc-4.4.0.11-all.jar\n```\nWarning: Check the matching version for your version of Neo4j\n\n### Aura\n## load db\nFrom a shell, stoped database :\n```sh\nbin/neo4j-admin push-to-cloud --bolt-uri neo4j+s://XXXXX.databases.neo4j.io --database=fincrime-1.0.0 --overwrite\n```\n\n### Nexus datasets\n\n\n## Manual upload for large datasets\n```sh\nexport dataset_name=fincrime-sales\nexport dataset_version=1.0.0\ncurl -L -v --user user@linkurio.us:${USER_PWD} --upload-file ${dataset_name}-${dataset_version}.tgz https://nexus3.linkurious.net/repository/datasets/com/linkurious/neo4j/4.2.4/${dataset_name}/${dataset_name}-${dataset_version}.tgz\n```\n## Download dataset\n```sh\nexport dataset_name=fincrime-sales\nexport dataset_version=1.0.0\ncurl -L -v --user user@linkurio.us:${USER_PWD} https://nexus3.linkurious.net/repository/datasets/com/linkurious/neo4j/4.2.4/${dataset_name}/${dataset_name}-${dataset_version}.tgz\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLinkurious%2Fdocker-neo4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLinkurious%2Fdocker-neo4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLinkurious%2Fdocker-neo4j/lists"}