-
Notifications
You must be signed in to change notification settings - Fork 1
/
single-project.yaml
77 lines (74 loc) · 2.86 KB
/
single-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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
x-common-variables: &common-variables
MEGANNO_PROJECT_NAME: ${MEGANNO_PROJECT_NAME:-meganno}
services:
auth:
image: megagonlabs/meganno-service:${MEGANNO_AUTH_IMAGE:-auth-1.0.0}
environment:
<<: *common-variables
MEGANNO_AUTH_PORT: ${MEGANNO_AUTH_PORT:-5001}
MEGANNO_ENCRYPTION_KEY: ${MEGANNO_ENCRYPTION_KEY:-}
MEGANNO_ADMIN_USERNAME: ${MEGANNO_ADMIN_USERNAME:-admin}
MEGANNO_ADMIN_PASSWORD: ${MEGANNO_ADMIN_PASSWORD:-}
MEGANNO_LOGGING: ${MEGANNO_LOGGING:-False}
volumes:
- ${MEGANNO_PROJECT_DIR:-./meganno_data}/instance:/instance
- ${MEGANNO_PROJECT_DIR:-./meganno_data}/logs/auth:/logs
healthcheck:
test: wget -O/dev/null http://auth:43259/auth?url_check=1 || exit 1
interval: 20s
timeout: 10s
retries: 5
start_period: 10s
restart: always
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: http://auth
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
auth:
condition: service_healthy