-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
143 lines (137 loc) · 4.11 KB
/
Copy pathdocker-compose.yml
File metadata and controls
143 lines (137 loc) · 4.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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
services:
# MinIO for local testing
minio:
image: quay.io/minio/minio:latest
container_name: minio
restart: unless-stopped
ports:
- "9000:9000" # API port
- "9001:9001" # Web console port
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
MINIO_PROMETHEUS_AUTH_TYPE: "public"
volumes:
- minio_data:/data
command: server /data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 3
networks:
- boilstream-network
# Create default buckets on startup
minio-setup:
image: quay.io/minio/mc:latest
container_name: minio-setup
depends_on:
- minio
entrypoint: >
/bin/sh -c "
sleep 5;
/usr/bin/mc config host add minio http://minio:9000 minioadmin minioadmin;
/usr/bin/mc mb --ignore-existing minio/test-bucket;
/usr/bin/mc mb --ignore-existing minio/ingestion-data;
/usr/bin/mc anonymous set download minio/test-bucket;
exit 0;
"
networks:
- boilstream-network
# Prometheus for metrics collection
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: unless-stopped
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.console.libraries=/etc/prometheus/console_libraries"
- "--web.console.templates=/etc/prometheus/consoles"
- "--web.enable-lifecycle"
- "--storage.tsdb.min-block-duration=2h"
- "--storage.tsdb.max-block-duration=2h"
- "--query.lookback-delta=1s"
- "--storage.tsdb.retention.time=7d" # 7 days retention for free tier
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9090/-/healthy"]
interval: 10s
timeout: 5s
retries: 3
networks:
- boilstream-network
# Add extra hosts to resolve host.docker.internal on all platforms
extra_hosts:
- "host.docker.internal:host-gateway"
# Grafana for visualization and monitoring dashboards
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- grafana_data:/var/lib/grafana
- ./config/grafana/provisioning:/etc/grafana/provisioning:ro
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
- GF_DASHBOARDS_MIN_REFRESH_INTERVAL=1s
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_INSTALL_PLUGINS=
depends_on:
- prometheus
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"]
interval: 10s
timeout: 5s
retries: 3
networks:
- boilstream-network
# Add extra hosts to resolve host.docker.internal on all platforms
extra_hosts:
- "host.docker.internal:host-gateway"
superset:
image: apache/superset:latest
container_name: superset
restart: unless-stopped
ports:
- "8088:8088"
environment:
- SUPERSET_SECRET_KEY=your_secret_key_here_change_this_to_something_secure
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- superset_home:/app/superset_home
command: >
bash -c "
pip install psycopg2-binary &&
superset fab create-admin
--username admin
--firstname Superset
--lastname Admin
--email admin@superset.com
--password admin &&
superset db upgrade &&
superset init &&
superset run -p 8088 --with-threads --reload --debugger --host=0.0.0.0
"
volumes:
superset_home:
driver: local
minio_data:
driver: local
prometheus_data:
driver: local
grafana_data:
driver: local
networks:
boilstream-network:
driver: bridge