Skip to content

Instantly share code, notes, and snippets.

@leandroluk
Created September 22, 2022 20:11
Show Gist options
  • Save leandroluk/cd1fa8760fe172c20f6075cea7dd6371 to your computer and use it in GitHub Desktop.
Save leandroluk/cd1fa8760fe172c20f6075cea7dd6371 to your computer and use it in GitHub Desktop.
Docker Compose with Neo4j container and APOC plugins installed
version: '3'
services:
neo4j:
container_name: neo4j
image: neo4j
ports:
- 7473:7473
- 7474:7474
- 7687:7687
environment:
- NEO4J_AUTH=neo4j/password # need define new password to no need change after start
healthcheck:
test: neo4j status && exit 0
timeout: 10s
retries: 5
entrypoint: >
bash -c "
echo 'downloading latest version of apoc plugin' &&
wget -q https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/4.4.0.9/apoc-4.4.0.9-all.jar -O /var/lib/neo4j/plugins/apoc-all.jar &&
echo 'starting Neo4j container after download plugin' &&
tini -g /startup/docker-entrypoint.sh neo4j
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment