Repository navigation
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
73 lines (70 loc) · 2.33 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
73 lines (70 loc) · 2.33 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3'
services:
neo4j:
image: neo4j:5.20-community
restart: unless-stopped
ports:
- 7474:7474
- 7687:7687
volumes:
- ./docker/db/conf:/var/lib/neo4j/conf
- painter-database:/data
- ./docker/db/logs:/logs
- ./docker/db/plugins:/plugins
environment:
# Raise memory limits
- NEO4J_AUTH=neo4j/changeme123
- NEO4J_server_memory_pagecache_size=4G
- NEO4J_dbms_memory_transaction_total_max=4G
- NEO4J_dbms.memory_heap.initial_size=4G
- NEO4J_server_memory_heap_max__size=16G
# Keep at most 1G of transaction logs beyond the last checkpoint (default: 2 days,
# unbounded size). They only serve incremental backups, which this setup does not use.
- NEO4J_db_tx__log_rotation_retention__policy=1G size
- NEO4J_apoc_export_file_enabled=true
- NEO4J_apoc_import_file_enabled=true
- NEO4J_apoc_import_file_use__neo4j__config=true
- NEO4JLABS_PLUGINS=["apoc"]
deploy:
resources:
reservations:
cpus: '12'
memory: 8G
# NVL web UI for the graph (see render/README.md). Reaches neo4j over the
# compose network; the UI itself is on http://localhost:8080.
render:
build: ./render
restart: unless-stopped
ports:
- 8080:8080
environment:
- NEO4J_URI=bolt://neo4j:7687
- NEO4J_USER=neo4j
- NEO4J_PASSWORD=changeme123
- NEO4J_DATABASE=neo4j
- RENDER_ALLOW_CYPHER=true
- RENDER_JOBS_URL=http://jobs:8080
depends_on:
- neo4j
# Background jobs (render/server/jobs/index.mjs, same image as render): refreshes the dashboard
# totals (Stats nodes) every JOBS_STATS_INTERVAL_MS and runs Map rebuilds, so render only reads.
# Control API on 127.0.0.1:8081 for scripts: POST /api/stats/refresh, /api/lod/rebuild, GET /api/status.
jobs:
build: ./render
command: ["node", "server/jobs/index.mjs"]
restart: unless-stopped
ports:
- 127.0.0.1:8081:8080
environment:
- NEO4J_URI=bolt://neo4j:7687
- NEO4J_USER=neo4j
- NEO4J_PASSWORD=changeme123
- NEO4J_DATABASE=neo4j
- JOBS_STATS_INTERVAL_MS=900000
- JOBS_LOD_UPDATE_INTERVAL_MS=0
depends_on:
- neo4j
volumes:
# Neo4j's store and transaction logs. `docker compose down -v` deletes it.
painter-database:
name: painter-database