-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
77 lines (72 loc) · 2.4 KB
/
Copy pathcompose.yaml
File metadata and controls
77 lines (72 loc) · 2.4 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
# Local development stack for Benchfinity.
#
# docker compose up -> frontend only (default)
# docker compose --profile full up -> frontend + backend + postgres + minio
#
# Copy .env.example to .env first (the [full] profile reads it for credentials).
# The GHCR image is private; run `docker login ghcr.io` before pulling by image.
services:
frontend:
# No profile: always part of the default `docker compose up`.
build:
context: .
dockerfile: Dockerfile
image: ghcr.io/benchfinity/workbench:develop
ports:
- "8080:8080"
restart: unless-stopped
# No healthcheck: the distroless Chainguard nginx base has no shell/wget.
# Health is handled by orchestrator HTTP probes (the Helm chart uses httpGet).
backend:
# Placeholder for the QQQ/Java REST API. Image is TBD (#1); enable with
# the `full` profile once the backend repo/image exists.
profiles: ["full"]
image: ghcr.io/benchfinity/workbench-api:latest
restart: unless-stopped
depends_on:
- postgres
- minio
environment:
DATABASE_URL: ${DATABASE_URL:-postgresql://benchfinity:change-me@postgres:5432/benchfinity}
MINIO_ENDPOINT: ${MINIO_ENDPOINT:-http://minio:9000}
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-benchfinity}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-change-me-too}
ports:
- "8081:8080"
postgres:
profiles: ["full"]
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-benchfinity}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-change-me}
POSTGRES_DB: ${POSTGRES_DB:-benchfinity}
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-benchfinity} -d ${POSTGRES_DB:-benchfinity}"]
interval: 10s
timeout: 5s
retries: 5
minio:
profiles: ["full"]
image: minio/minio:latest
restart: unless-stopped
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-benchfinity}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-change-me-too}
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio-data:/data
healthcheck:
test: ["CMD-SHELL", "mc ready local || exit 1"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
postgres-data: {}
minio-data: {}