feat: add more
This commit is contained in:
17
src/neo4j/.env.example
Normal file
17
src/neo4j/.env.example
Normal file
@@ -0,0 +1,17 @@
|
||||
# Neo4j version (community or enterprise)
|
||||
NEO4J_VERSION="5.27.4-community"
|
||||
|
||||
# Authentication (format: username/password or "none" to disable)
|
||||
NEO4J_AUTH="neo4j/password"
|
||||
|
||||
# Accept license agreement (required for enterprise edition)
|
||||
NEO4J_ACCEPT_LICENSE_AGREEMENT="yes"
|
||||
|
||||
# Memory configuration
|
||||
NEO4J_PAGECACHE_SIZE="512M"
|
||||
NEO4J_HEAP_INIT_SIZE="512M"
|
||||
NEO4J_HEAP_MAX_SIZE="1G"
|
||||
|
||||
# Port overrides
|
||||
NEO4J_HTTP_PORT_OVERRIDE=7474
|
||||
NEO4J_BOLT_PORT_OVERRIDE=7687
|
||||
45
src/neo4j/docker-compose.yaml
Normal file
45
src/neo4j/docker-compose.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
x-default: &default
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- &localtime /etc/localtime:/etc/localtime:ro
|
||||
- &timezone /etc/timezone:/etc/timezone:ro
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 100m
|
||||
|
||||
services:
|
||||
neo4j:
|
||||
<<: *default
|
||||
image: neo4j:${NEO4J_VERSION:-5.27.4-community}
|
||||
container_name: neo4j
|
||||
ports:
|
||||
- "${NEO4J_HTTP_PORT_OVERRIDE:-7474}:7474"
|
||||
- "${NEO4J_BOLT_PORT_OVERRIDE:-7687}:7687"
|
||||
volumes:
|
||||
- *localtime
|
||||
- *timezone
|
||||
- neo4j_data:/data
|
||||
- neo4j_logs:/logs
|
||||
- neo4j_import:/var/lib/neo4j/import
|
||||
- neo4j_plugins:/plugins
|
||||
environment:
|
||||
- NEO4J_AUTH=${NEO4J_AUTH:-neo4j/password}
|
||||
- NEO4J_ACCEPT_LICENSE_AGREEMENT=${NEO4J_ACCEPT_LICENSE_AGREEMENT:-yes}
|
||||
- NEO4J_dbms_memory_pagecache_size=${NEO4J_PAGECACHE_SIZE:-512M}
|
||||
- NEO4J_dbms_memory_heap_initial__size=${NEO4J_HEAP_INIT_SIZE:-512M}
|
||||
- NEO4J_dbms_memory_heap_max__size=${NEO4J_HEAP_MAX_SIZE:-1G}
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '2.0'
|
||||
memory: 2G
|
||||
reservations:
|
||||
cpus: '0.5'
|
||||
memory: 1G
|
||||
|
||||
volumes:
|
||||
neo4j_data:
|
||||
neo4j_logs:
|
||||
neo4j_import:
|
||||
neo4j_plugins:
|
||||
Reference in New Issue
Block a user