-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yaml
43 lines (41 loc) · 1.13 KB
/
docker-compose.yaml
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
version: "3"
services:
neo4j:
image: neo4j:latest
hostname: neo4j
container_name: neo4j
networks:
- nuvola
cap_drop:
- ALL
cap_add:
- CAP_CHOWN
- CAP_FOWNER
- CAP_DAC_OVERRIDE
- CAP_SETGID
- CAP_SETUID
ports:
- "127.0.0.1:7474:7474"
- "0.0.0.0:7687:7687"
volumes:
- ./backup:/backup:rw
environment:
NEO4J_PLUGINS: '["apoc"]'
NEO4J_AUTH: $NEO4J_AUTH
NEO4J_apoc_export_file_enabled: "true"
NEO4J_server_memory_heap_initial__size: ${NEO4J_server_memory_heap_initial__size}
NEO4J_server_memory_heap_max__size: ${NEO4J_server_memory_heap_max__size}
NEO4J_server_memory_pagecache_size: ${NEO4J_server_memory_pagecache_size}
NEO4J_server_jvm_additional: -XX:+ExitOnOutOfMemoryError
NEO4J_initial_dbms_default__database: nuvoladb
NEO4J_dbms_cypher_forbid__shortestpath__common__nodes: "false"
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7474"]
interval: 5m
timeout: 10s
retries: 3
start_period: 1m
networks:
nuvola: