41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
neo4j:
|
|
image: neo4j:5.18.1
|
|
container_name: ontology-neo4j
|
|
environment:
|
|
NEO4J_AUTH: neo4j/ontology123 # username: neo4j, password: ontology123
|
|
NEO4J_server_memory_heap_initial__size: 1G
|
|
NEO4J_server_memory_heap_max__size: 2G
|
|
NEO4J_dbms_memory_pagecache_size: 1G
|
|
# APOC (for advanced graph operations)
|
|
NEO4J_dbms_security_procedures_unrestricted: apoc.*
|
|
NEO4J_server_logs_debug_level: INFO
|
|
ports:
|
|
- "7687:7687" # Bolt protocol
|
|
- "7474:7474" # HTTP
|
|
- "7473:7473" # HTTPS
|
|
volumes:
|
|
- neo4j_data:/var/lib/neo4j/data
|
|
- neo4j_logs:/var/lib/neo4j/logs
|
|
- neo4j_import:/var/lib/neo4j/import
|
|
healthcheck:
|
|
test: ["CMD", "cypher-shell", "-u", "neo4j", "-p", "ontology123", "RETURN 1"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
neo4j_data:
|
|
driver: local
|
|
neo4j_logs:
|
|
driver: local
|
|
neo4j_import:
|
|
driver: local
|
|
|
|
networks:
|
|
default:
|
|
name: ontology-network
|