-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (47 loc) · 2.11 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (47 loc) · 2.11 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
# Graphus — local Docker Compose example (the quickstart profile).
#
# docker compose up --build # build from source and run
# docker compose down # stop (the named volume keeps your data)
#
# Databases persist in the `graphus-data` named volume mounted at /data, so they
# survive `docker compose down` and container recreation. Remove them with
# `docker compose down -v`.
#
# This file is the DEFAULT quickstart. For other configurations — UDS-only (no
# network exposure), a Neo4j-compat Bolt agent, custom ports, bind-mount
# persistence, and a production CA-TLS setup — see the copy-pasteable recipes in
# docs/docker.md. A few of those toggles are shown commented-out below.
#
# ⚠️ This example uses the image's local-quickstart defaults: a SELF-SIGNED TLS
# certificate (provisioned on first boot) and a well-known admin password.
# Bolt + REST are encrypted but the cert is untrusted — connect with
# bolt+ssc:// (Bolt) and curl -k (REST). Do NOT use beyond a local sandbox;
# see docs/docker.md (Recipe 6) for how to supply a real (CA-issued) certificate.
services:
graphus:
# Build the image from this repository...
build:
context: .
dockerfile: Dockerfile
# ...or pull a published multi-arch image instead (comment out `build:` above):
# image: flaviocfo/graphus:latest
container_name: graphus
restart: unless-stopped
ports:
- "7687:7687" # Bolt over TCP (Neo4j drivers)
- "7474:7474" # Web REST API
# Optional feature toggles (uncomment to try; see docs/docker.md for full recipes):
# environment:
# GRAPHUS_BOLT_SERVER_AGENT: "neo4j-compat" # announce Neo4j/5.13.0 in the Bolt HELLO
# GRAPHUS_BUFFER_POOL_PAGES: "0" # 0 = auto-size from detected RAM (the default)
# GRAPHUS_BOLT_TCP_ADDR: "" # "" disables Bolt-TCP (e.g. for a UDS-only setup)
volumes:
- graphus-data:/data
healthcheck:
test: ["CMD", "curl", "-fsSk", "https://127.0.0.1:7474/health/live"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
volumes:
graphus-data: