-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (26 loc) · 937 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
28 lines (26 loc) · 937 Bytes
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
version: '3.8'
services:
neo4j:
image: neo4j:latest
container_name: sec_graph_db
ports:
- "7474:7474"
- "7687:7687"
environment:
- NEO4J_AUTH=${NEO4J_USER}/${NEO4J_PASSWORD}
- NEO4J_PLUGINS=["apoc", "graph-data-science"]
- NEO4J_dbms_security_procedures_unrestricted=gds.*,apoc.*
- NEO4J_dbms_security_procedures_allowlist=gds.*,apoc.*
- NEO4J_dbms_memory_heap_initial__size=${NEO4J_HEAP_INITIAL}
- NEO4J_dbms_memory_heap_max__size=${NEO4J_HEAP_MAX}
- NEO4J_dbms_memory_pagecache_size=${NEO4J_PAGECACHE}
volumes:
- ${NEO4J_DATA_DIR}/data:/data
- ${NEO4J_DATA_DIR}/logs:/logs
- ${NEO4J_DATA_DIR}/plugins:/plugins
healthcheck:
test: ["CMD", "cypher-shell", "-u", "${NEO4J_USER}", "-p", "${NEO4J_PASSWORD}", "RETURN 1"]
interval: 10s
timeout: 5s
retries: 10
restart: unless-stopped