- Remove container-level CIFS mounting (requires SYS_ADMIN capability) - Use docker-compose.yml bind-mounts from host (/mnt/smb-ame/*) - Simplify entrypoint.sh to just verify mount points exist - Include mount command in comments for host setup - More reliable and doesn't require Docker capability grants To use: 1. Mount SMB on host: sudo mount -t cifs //172.18.210.5/ame /mnt/smb-ame \ -o username=smb,password=Production2020!,uid=1000,gid=1000,file_mode=0755,dir_mode=0755,vers=3.0 2. Update /etc/fstab to persist mount across reboots 3. Start container: docker compose up -d Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
ame-job-manager:
|
|
build: .
|
|
container_name: ame-job-manager
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3100:3100"
|
|
environment:
|
|
- PORT=3100
|
|
- AUTH_USER=Admin
|
|
- AUTH_PASS=BertAndErnieVPM2026
|
|
# Container-local mount points (not directly used — entrypoint.sh manages these)
|
|
- WATCH_FOLDER=/watch
|
|
- OUTPUT_FOLDER=/output
|
|
- AME_LOG_DIR=/ame-logs
|
|
- DATA_DIR=/data
|
|
# Polling interval for folder monitoring (ms)
|
|
- POLL_INTERVAL_MS=5000
|
|
# Job timeout before marking as stuck (ms) — default 1 hour
|
|
- JOB_TIMEOUT_MS=3600000
|
|
# S3 config (same creds as framelightx-uploader, encoder bucket)
|
|
- S3_ENDPOINT=https://broadcastmgmt.cloud
|
|
- S3_ACCESS_KEY=c9L2fu581a3gnH7rSdBJ
|
|
- S3_SECRET_KEY=QaJmlogyPCvtO7iSVGw9NAzB8H6FknLqXpYrWRdx
|
|
- S3_BUCKET=encoder
|
|
- S3_REGION=us-east-1
|
|
volumes:
|
|
# Persistent data store (settings, job DB, sessions)
|
|
- app_data:/data
|
|
# Temporary upload storage
|
|
- upload_tmp:/tmp/uploads
|
|
# Mount SMB share from host — pre-mount at host level with:
|
|
# sudo mount -t cifs //172.18.210.5/ame /mnt/smb-ame \
|
|
# -o username=smb,password=Production2020!,uid=1000,gid=1000,file_mode=0755,dir_mode=0755,vers=3.0
|
|
- /mnt/smb-ame/watch:/watch
|
|
- /mnt/smb-ame/output:/output
|
|
- /mnt/smb-ame/logs:/ame-logs
|
|
|
|
volumes:
|
|
app_data:
|
|
upload_tmp:
|