-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.neo4j.yml
More file actions
53 lines (51 loc) · 2.01 KB
/
Copy pathdocker-compose.neo4j.yml
File metadata and controls
53 lines (51 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
services:
neo4j:
image: neo4j:5.24.0-community
container_name: scidk-neo4j
restart: unless-stopped
environment:
- NEO4J_AUTH=${NEO4J_AUTH:-neo4j/neo4jiscool}
- NEO4J_server_memory_heap_initial__size=${NEO4J_HEAP_INIT:-1G}
- NEO4J_server_memory_heap_max__size=${NEO4J_HEAP_MAX:-2G}
- NEO4J_dbms_security_auth__enabled=true
- NEO4J_PLUGINS=["apoc"]
- NEO4J_dbms_security_procedures_unrestricted=apoc.*
- NEO4J_apoc_export_file_enabled=true
- NEO4J_apoc_import_file_enabled=true
- NEO4J_apoc_import_file_use__neo4j__config=true
ports:
- "7474:7474" # HTTP (Neo4j Browser/Workspace if bundled)
- "7687:7687" # Bolt
volumes:
- ${NEO4J_HOST_DATA_DIR:-./data/neo4j/data}:/data
- ${NEO4J_HOST_LOGS_DIR:-./data/neo4j/logs}:/logs
- ${NEO4J_HOST_PLUGINS_DIR:-./data/neo4j/plugins}:/plugins
- ${NEO4J_HOST_IMPORT_DIR:-./data/neo4j/import}:/import
healthcheck:
test: ["CMD-SHELL", "PASS=$${NEO4J_AUTH#neo4j/}; cypher-shell -u neo4j -p \"$${PASS}\" -a bolt://localhost:7687 \"RETURN 1;\""]
interval: 15s
timeout: 5s
retries: 10
start_period: 20s
neo4j-chat:
image: neo4j:2025.10.1
container_name: scidk-neo4j-chat
restart: unless-stopped
environment:
- NEO4J_AUTH=${CHAT_NEO4J_AUTH:-neo4j/changeme}
- NEO4J_server_memory_heap_initial__size=512m
- NEO4J_server_memory_heap_max__size=512m
- NEO4J_server_memory_pagecache_size=256m
- NEO4J_dbms_security_auth__enabled=true
ports:
- "7688:7687" # Bolt (chat Neo4j on different port)
- "7475:7474" # HTTP (chat Neo4j Browser)
volumes:
- ${CHAT_NEO4J_HOST_DATA_DIR:-./data/neo4j-chat/data}:/data
- ${CHAT_NEO4J_HOST_LOGS_DIR:-./data/neo4j-chat/logs}:/logs
healthcheck:
test: ["CMD-SHELL", "PASS=$${NEO4J_AUTH#neo4j/}; cypher-shell -u neo4j -p \"$${PASS}\" -a bolt://localhost:7687 \"RETURN 1;\""]
interval: 15s
timeout: 5s
retries: 10
start_period: 20s