-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (67 loc) · 1.91 KB
/
docker-compose.yml
File metadata and controls
73 lines (67 loc) · 1.91 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
name: impact-poc
services:
icpm:
container_name: icpm-shiny
image: ${ICPM_IMAGE}:${ICPM_VERSION}
# volumes:
# - ./bmed.json:/app/.venv/lib/python3.13/namespaces/bmed.json
environment:
NEO4J_URI: ${NEO4J_URI}
NEO4J_USERNAME: ${NEO4J_USERNAME}
NEO4J_PASSWORD: ${NEO4J_PASSWORD}
depends_on:
graph-dataset:
condition: service_healthy
restart: always
nginx:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/.htpasswd:/etc/nginx/.htpasswd:ro
depends_on:
- icpm
graph-dataset:
image: ${GRAPH_IMAGE}:${GRAPH_VERSION}
container_name: graph-dataset
ports:
- '7474:7474'
- '7687:7687'
environment:
CYPHER_USER: ${NEO4J_USERNAME}
CYPHER_PASS: ${NEO4J_PASSWORD}
NEO4J_server_memory_heap_initial__size: 2G
NEO4J_server_memory_heap_max__size: 8G
NEO4J_server_memory_pagecache_size: 4G
NEO4J_AUTH: "${NEO4J_USERNAME}/${NEO4J_PASSWORD}"
volumes:
- neo4j_data:/data
- neo4j_plugins:/plugins
- neo4j_logs:/logs
- ${OUTPUT_DIR}:/app/datasets
entrypoint: ["/bin/bash", "-c", "/init/init.sh"]
deploy:
resources:
limits:
memory: 12G # needs to be at least the sum of heap_max_size and pagecache_size
reservations:
memory: 8G
healthcheck:
test: ["CMD-SHELL", "wget --quiet --tries=1 --spider http://localhost:7474 || exit 1"]
interval: 10s
timeout: 5s
retries: 5
dump-helper: # container with all the mounts ready to be used for dumping
image: ${GRAPH_IMAGE}:${GRAPH_VERSION}
container_name: dump-helper
volumes:
- neo4j_data:/data
- neo4j_plugins:/plugins
- neo4j_logs:/logs
- ${OUTPUT_DIR}:/app/datasets
entrypoint: ['sleep', 'infinity']
volumes:
neo4j_data: { }
neo4j_logs: { }
neo4j_plugins: { }