-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (26 loc) · 930 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
26 lines (26 loc) · 930 Bytes
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
# Grapha HTTP graph explorer.
#
# docker compose up --build # build image and serve ./ at :8080
# GRAPHA_TARGET=/path/to/repo docker compose up
# GRAPHA_REINDEX=1 docker compose up # force a re-index on start
#
# Mount the repository you want to explore at /workspace. The entrypoint
# indexes it on first run (writing a .grapha store into the mount) and then
# serves the graph. Set GRAPHA_REINDEX=1 to rebuild the index on startup.
services:
grapha:
build:
context: .
dockerfile: Dockerfile
image: grapha:latest
ports:
- "${GRAPHA_PORT:-8080}:8080"
volumes:
# Repo to analyze. Override with GRAPHA_TARGET; defaults to this repo.
- "${GRAPHA_TARGET:-.}:/workspace"
environment:
GRAPHA_HOST: "0.0.0.0"
GRAPHA_PORT: "8080"
# Set to any value to re-index on container start.
GRAPHA_REINDEX: "${GRAPHA_REINDEX:-}"
restart: unless-stopped