-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (70 loc) · 1.69 KB
/
docker-compose.yml
File metadata and controls
76 lines (70 loc) · 1.69 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
version: '3.8'
services:
# Metabase for visualization with DuckDB support
metabase:
build: ./docker/metabase
container_name: metabase
platform: linux/amd64
ports:
- "3000:3000"
environment:
MB_DB_TYPE: postgres
MB_DB_DBNAME: metabase
MB_DB_PORT: 5432
MB_DB_USER: metabase
MB_DB_PASS: metabase
MB_DB_HOST: postgres
# Add Java options for better DuckDB performance
JAVA_OPTS: "-Xmx4g -Xms1g"
depends_on:
- postgres
- clickhouse
volumes:
- metabase-data:/metabase-data
- ./data:/data:ro # Mount our data directory for DuckDB access
networks:
- finops-network
# Postgres for Metabase metadata
postgres:
image: postgres:15-alpine
container_name: metabase_postgres
ports:
- "5432:5432"
environment:
POSTGRES_DB: metabase
POSTGRES_USER: metabase
POSTGRES_PASSWORD: metabase
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- finops-network
# ClickHouse for FinOps data
clickhouse:
image: clickhouse/clickhouse-server:23.8
container_name: clickhouse
ports:
- "8123:8123"
- "9000:9000"
environment:
- CLICKHOUSE_USER=default
- CLICKHOUSE_PASSWORD=password
- CLICKHOUSE_DB=finops
volumes:
- clickhouse-data:/var/lib/clickhouse
networks:
- finops-network
# DuckDB (for development - will be added when we build the API)
# duckdb:
# build: ./src/api
# container_name: duckdb_api
# ports:
# - "8080:8080"
# volumes:
# - ./data:/data
volumes:
metabase-data:
postgres-data:
clickhouse-data:
networks:
finops-network:
driver: bridge