-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (75 loc) · 2 KB
/
Copy pathdocker-compose.yml
File metadata and controls
78 lines (75 loc) · 2 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
74
75
76
77
78
services:
web:
container_name: mimis
build:
context: .
args:
- PUBLIC_APPKIT_PROJECT_ID=${PUBLIC_APPKIT_PROJECT_ID}
ports:
- 64209:3000
env_file:
- .env.docker
depends_on:
neo4j:
condition: service_healthy
neo4j:
# image: neo4j:community
image: neo4j:5.26.12-community-bullseye
container_name: neo4j
restart: unless-stopped
ports:
- 7474:7474
- 7687:7687
env_file:
- .env.docker
environment:
- NEO4J_PLUGINS=["apoc", "apoc-extended"]
# - NEO4J_db_query_default__language=CYPHER_25
# - NEO4J_dbms_mode=SINGLE
# - EXTENSION_SCRIPT=/bin/neo4j_init.sh
volumes:
- neo4j_data:/data
- neo4j_logs:/logs
- ./config/apoc.conf:/var/lib/neo4j/conf/apoc.conf
healthcheck:
test: [
"CMD",
"cypher-shell",
"--username", "${PUBLIC_NEO4J_USER:-neo4j}",
"--password", "${PUBLIC_NEO4J_PASS:-Password from within Docker.}",
"RETURN 1"
]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
# neo4j-init:
# # image: neo4j:community
# image: neo4j:5.26.12-community-bullseye
# container_name: neo4j-init
# depends_on:
# neo4j:
# condition: service_healthy
# env_file:
# - .env.docker
# volumes:
# - ./config:/scripts
# entrypoint: /bin/bash
# command: >
# -c "
# echo 'Waiting for Neo4j to be ready…';
# sleep 5;
# echo 'Running initialization scripts…';
# ADDR='neo4j://neo4j:7687';
# cypher-shell -u $$PUBLIC_NEO4J_USER -p \"$$PUBLIC_NEO4J_PASS\" -a \"$$ADDR\" \'CALL apoc.trigger.list()\';
# for script in /scripts/*.cypher; do
# echo Executing $$script against $$ADDR;
# cypher-shell -u $$PUBLIC_NEO4J_USER -p \"$$PUBLIC_NEO4J_PASS\" -a \"$$ADDR\" -f \"$$script\";
# done;
# echo 'Initialization complete!';
# sleep 6000;
# "
volumes:
neo4j_data:
neo4j_logs:
neo4j_conf: