-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (76 loc) · 2.31 KB
/
docker-compose.yml
File metadata and controls
81 lines (76 loc) · 2.31 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
# ============================================================================
# Betterbase Local Development Docker Compose
#
# Quick start for local development. Starts PostgreSQL, MinIO, and Inngest.
# Betterbase server runs locally with hot-reload.
#
# Usage:
# docker compose up -d postgres minio inngest
# bun run dev
# ============================================================================
services:
# PostgreSQL Database
postgres:
image: postgres:16-alpine
container_name: betterbase-postgres-local
restart: unless-stopped
environment:
POSTGRES_USER: betterbase
POSTGRES_PASSWORD: betterbase_dev_password
POSTGRES_DB: betterbase
ports:
- "5432:5432"
volumes:
- postgres_local_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U betterbase"]
interval: 5s
timeout: 5s
retries: 5
# MinIO (S3-compatible storage)
minio:
image: bitnami/minio:2025.1.16
container_name: betterbase-minio-local
restart: unless-stopped
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-betterbase}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-betterbase_dev_password}
MINIO_DATA_DIR: /data
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_local_data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 10s
timeout: 5s
retries: 5
# MinIO Init (Create bucket on startup)
minio-init:
image: minio/mc:RELEASE.2025-08-13T08-35-41Z
container_name: betterbase-minio-init-local
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
mc alias set local http://minio:9000 ${MINIO_ROOT_USER:-betterbase} ${MINIO_ROOT_PASSWORD:-betterbase_dev_password};
mc mb --ignore-existing local/betterbase;
echo 'MinIO bucket initialized.';
"
# Inngest (Durable Workflow Engine)
inngest:
image: inngest/inngest:v1.17.5
container_name: betterbase-inngest-local
restart: unless-stopped
command: inngest dev --host 0.0.0.0 --port 8288
ports:
- "8288:8288"
volumes:
- inngest_local_data:/data
volumes:
postgres_local_data:
minio_local_data:
inngest_local_data: