The backend no longer mentions MinIO anywhere: MinioClient -> GarageClient (minio_client.py -> garage_client.py), MINIO_* env vars -> GARAGE_*, and the `minio` Python package is replaced with `boto3` (AWS's generic S3 client) since Garage is the only storage backend this project targets now. S3 API semantics are unchanged, so document_service.py's behavior is identical — this is a naming and dependency swap, not a logic change. Also updates test fixtures/names (FakeMinioClient -> FakeGarageClient, FakeMinioSDK -> FakeS3SDK) and storage/README.md, which no longer frames Garage as a MinIO replacement (that migration note has served its purpose now that no MinIO reference remains in the codebase). Backend: 54/54 tests passing. Frontend: 38/38 tests passing (unaffected, verified for regressions since it talks to the backend only through the unchanged REST API).
39 lines
978 B
YAML
39 lines
978 B
YAML
services:
|
|
backend:
|
|
build: ./backend
|
|
environment:
|
|
GARAGE_ENDPOINT: ${GARAGE_ENDPOINT:-garage:3900}
|
|
GARAGE_ACCESS_KEY: ${GARAGE_ACCESS_KEY:-}
|
|
GARAGE_SECRET_KEY: ${GARAGE_SECRET_KEY:-}
|
|
GARAGE_BUCKET: ${GARAGE_BUCKET:-dochub}
|
|
MEILISEARCH_HOST: http://meilisearch:7700
|
|
MEILISEARCH_API_KEY: ${MEILISEARCH_API_KEY:-}
|
|
MEILISEARCH_INDEX: ${MEILISEARCH_INDEX:-documents}
|
|
CORS_ORIGINS: ${CORS_ORIGINS:-http://localhost:8080}
|
|
depends_on:
|
|
- meilisearch
|
|
restart: unless-stopped
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
args:
|
|
VITE_API_BASE_URL: ""
|
|
ports:
|
|
- "8080:80"
|
|
depends_on:
|
|
- backend
|
|
restart: unless-stopped
|
|
|
|
meilisearch:
|
|
image: getmeili/meilisearch:v1.10
|
|
environment:
|
|
MEILI_MASTER_KEY: ${MEILISEARCH_API_KEY:-}
|
|
MEILI_NO_ANALYTICS: "true"
|
|
volumes:
|
|
- meilisearch-data:/meili_data
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
meilisearch-data:
|