Files
bodyshop-media-server/docker-compose.yml
2025-11-04 14:43:37 -08:00

35 lines
1.0 KiB
YAML

# Production configuration - use with docker-compose.override.yml for development
version: '3.8'
services:
ims:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
- "6379:6379"
volumes:
- "/Users/pfic/Desktop/IMS:/media"
- "./logs:/usr/src/app/logs" # Mount logs directory for persistence
environment:
- NODE_ENV=production
- PORT=8000
- MEDIA_PATH=/media
- DUPLICATE_BILL_TO_VENDOR=false
- IMS_TOKEN=
- CONVERT_QUALITY=0.5
- KEEP_CONVERTED_ORIGINALS=TRUE
# S3 Sync Configuration (uncomment and configure for daily sync)
# - S3_BUCKET_NAME=your-s3-bucket-name
# - S3_REGION=us-east-1
# - S3_ACCESS_KEY_ID=your-access-key-id
# - S3_SECRET_ACCESS_KEY=your-secret-access-key
# - S3_KEY_PREFIX=jobs/
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s