-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcompose.yaml
More file actions
130 lines (118 loc) · 3.27 KB
/
compose.yaml
File metadata and controls
130 lines (118 loc) · 3.27 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
services:
#
# LiteGraph Server
# See https://hub.docker.com/r/jchristn77/litegraph
# and https://github.com/jchristn/LiteGraph
#
litegraph:
container_name: 'litegraph'
image: 'jchristn77/litegraph:v6.0.0'
stdin_open: true
tty: true
ports:
- '8701:8701'
volumes:
- ./litegraph.json:/app/litegraph.json
# Mount the full docker directory so the legacy litegraph.db path keeps
# working while SQLite sidecar files and vector indexes persist together.
- ./:/app/docker/
- ./logs/litegraph/:/app/logs/
- ./backups/litegraph/:/app/backups/
healthcheck:
test: curl --fail http://localhost:8701
interval: 5s
timeout: 2s
retries: 3
#
# LiteGraph MCP Server
# See https://hub.docker.com/r/jchristn77/litegraph-mcp
# and https://github.com/jchristn/LiteGraph
#
litegraph-mcp:
container_name: 'litegraph-mcp'
image: 'jchristn77/litegraph-mcp:v6.0.0'
stdin_open: true
tty: true
ports:
- '8702:8702'
- '8703:8703'
- '8704:8704'
depends_on:
litegraph:
condition: service_healthy
volumes:
- ./litegraph-mcp.json:/app/litegraph.json
- ./logs/litegraph-mcp/:/app/logs/
- ./backups/litegraph-mcp/:/app/backups/
healthcheck:
test: curl --fail http://localhost:8702
interval: 5s
timeout: 2s
retries: 3
#
# LiteGraph UI
# See https://hub.docker.com/r/jchristn77/litegraph-ui
# and https://github.com/jchristn/LiteGraph/tree/master/dashboard
#
litegraph-ui:
container_name: 'litegraph-ui'
image: 'jchristn77/litegraph-ui:v6.0.0'
stdin_open: true
tty: true
ports:
- '3001:3000'
depends_on:
litegraph:
condition: service_healthy
# Publish the UI on host port 3001 so Grafana can keep using 3000.
healthcheck:
test: curl --fail http://localhost:3000
interval: 5s
timeout: 2s
retries: 3
#
# Prometheus
# Scrapes LiteGraph metrics from http://litegraph:8701/metrics.
#
prometheus:
container_name: 'litegraph-prometheus'
image: 'prom/prometheus:latest'
stdin_open: true
tty: true
ports:
- '9090:9090'
depends_on:
litegraph:
condition: service_healthy
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus-data:/prometheus
#
# Grafana OSS
# Preconfigured with Prometheus and the LiteGraph dashboard.
#
grafana:
container_name: 'litegraph-grafana'
image: 'grafana/grafana-oss:latest'
stdin_open: true
tty: true
ports:
- '3000:3000'
depends_on:
prometheus:
condition: service_started
environment:
GF_SECURITY_ADMIN_USER: 'admin'
GF_SECURITY_ADMIN_PASSWORD: 'admin'
GF_USERS_ALLOW_SIGN_UP: 'false'
volumes:
- grafana-storage:/var/lib/grafana
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
- ../assets/grafana:/var/lib/grafana/dashboards/litegraph:ro
volumes:
prometheus-data:
grafana-storage: