-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (27 loc) · 964 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (27 loc) · 964 Bytes
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
# =============================================================================
# Docker Compose for Local Testing
# =============================================================================
#
# Run tasks locally using real AWS services (S3, Textract, Bedrock).
# AWS credentials are mounted from ~/.aws
#
# Usage:
# docker compose build # Build the image
# docker compose run --rm app python -m src.tasks.process_document '{"pdf_s3_uri": "...", "output_s3_uri": "...", "page_numbers": [1], "batch_id": "batch_0001_0001"}'
#
# Prerequisites:
# - AWS credentials in ~/.aws/credentials with BlueTail profile
# - S3 bucket: nmd-bluetail-local-testing (or set in .env)
services:
app:
build: .
env_file:
- .env
environment:
# Local dev overrides
- APP_LOG_FORMAT=text
volumes:
# Mount AWS credentials
- ~/.aws:/root/.aws:ro
# Mount local data for testing
- ./data:/app/data:ro