-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
94 lines (87 loc) · 2.29 KB
/
docker-compose.yml
File metadata and controls
94 lines (87 loc) · 2.29 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
# 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
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: