-
Notifications
You must be signed in to change notification settings - Fork 1
/
multi-project.yaml
55 lines (53 loc) · 1.99 KB
/
multi-project.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
44
45
46
47
48
49
50
51
52
53
54
55
x-common-variables: &common-variables
MEGANNO_PROJECT_NAME: ${MEGANNO_PROJECT_NAME:-meganno}
services:
neo4j:
image: neo4j:4.4.27-community
ports:
# uncomment to expose ports 7473 and/or 7474
# - "7473:7473"
# - "7474:7474"
- "7687:7687"
environment:
NEO4J_AUTH: neo4j/${MEGANNO_NEO4J_PASSWORD:-meganno}
NEO4JLABS_PLUGINS: '["apoc","graph-data-science"]'
NEO4J_dbms_security_procedures_allowlist: gds.*,apoc.*
NEO4J_dbms_security_procedures_unrestricted: gds.*,apoc.*
volumes:
- ${MEGANNO_PROJECT_DIR:-./meganno_data}/data:/data
- ${MEGANNO_PROJECT_DIR:-./meganno_data}/logs/neo4j:/logs
healthcheck:
test:
[
"CMD",
"/var/lib/neo4j/bin/cypher-shell",
"-u",
"neo4j",
"-p",
"${MEGANNO_NEO4J_PASSWORD:-meganno}",
"MATCH () RETURN count(*) as count",
]
interval: 20s
timeout: 10s
retries: 5
start_period: 10s
restart: always
api:
image: megagonlabs/meganno-service:${MEGANNO_IMAGE:-api-1.2.0}
ports:
- ${MEGANNO_SERVICE_PORT:-5000}:${MEGANNO_SERVICE_PORT:-5000}
- "43258:43258"
environment:
<<: *common-variables
MEGANNO_FLASK_HOST: 0.0.0.0
MEGANNO_NEO4J_PASSWORD: ${MEGANNO_NEO4J_PASSWORD:-meganno}
MEGANNO_NEO4J_HOST: bolt://neo4j
MEGANNO_SERVICE_PORT: ${MEGANNO_SERVICE_PORT:-5000}
MEGANNO_AUTH_HOST: ${MEGANNO_AUTH_HOST:-}
MEGANNO_AUTH_PORT: ${MEGANNO_AUTH_PORT:-5001}
MEGANNO_LOGGING: ${MEGANNO_LOGGING:-False}
volumes:
- ${MEGANNO_PROJECT_DIR:-./meganno_data}/logs/api:/logs
depends_on:
neo4j:
condition: service_healthy