-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
113 lines (106 loc) · 3.54 KB
/
Copy pathdocker-compose.yml
File metadata and controls
113 lines (106 loc) · 3.54 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
# Fula Storage - Complete Development Stack
# Run with: docker-compose up -d
version: "3.8"
services:
# ============================================
# Fula Gateway - S3-Compatible API
# ============================================
gateway:
build:
context: /opt/fula-api
dockerfile: Dockerfile
env_file:
- .env
environment:
# --- Load-relief for gc-damaged buckets (2026-06-07) ---
# Stop the one-time fleet-wide index-node backfill: on damaged buckets it
# re-walks every index, hits hard-loss nodes at ~6s each, and burns
# gateway/kubo capacity on every restart for no gain (per-PUT pinning still
# protects active buckets). Reversible: remove this line to re-enable.
- FULA_NO_LOCAL_RETAIN_BACKFILL=true
# Bounded-read budget. The local-retain verifier has offloaded ~nothing
# (backlog ~956k pending, oldest ~4.5 days) so essentially EVERY block is
# still local — there are almost no remote reads to protect, and the
# online tail is pure dead-weight on gc-orphaned reads (stale/gc'd CID
# that's gone). So: keep a 1s shot at any peered holder (fast=1) and kill
# the slow tail (slow=0) → gc-orphaned reads fast-fail to the cluster-mirror
# fallback (or 404) in ~1s instead of ~3-6s, for BOTH mirror-hits and
# mirror-misses. Healthy local reads are the offline-hit fast path,
# unaffected. If the backlog ever drains (real remote reads appear) and
# legit slow holders start 410'ing, raise slow back to 2-4.
- FULA_READ_FAST_TIMEOUT_SECS=1
- FULA_READ_SLOW_TIMEOUT_SECS=0
volumes:
- /var/lib/fula-gateway:/var/lib/fula-gateway
network_mode: host
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/healthz"]
interval: 30s
timeout: 5s
retries: 3
# ============================================
# Redis (optional - for multi-gateway sync)
# ============================================
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis-data:/data
command: redis-server --appendonly yes
restart: unless-stopped
networks:
- fula-network
profiles:
- full
# ============================================
# Prometheus (optional - monitoring)
# ============================================
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus-data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.enable-lifecycle'
restart: unless-stopped
networks:
- fula-network
profiles:
- monitoring
# ============================================
# Grafana (optional - dashboards)
# ============================================
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD:-admin}
depends_on:
- prometheus
restart: unless-stopped
networks:
- fula-network
profiles:
- monitoring
# ============================================
# Networks
# ============================================
networks:
fula-network:
driver: bridge
# ============================================
# Volumes
# ============================================
volumes:
redis-data:
prometheus-data:
grafana-data: