Fix path mismatch between Apache and Docker worker
Mount uploads/results at the same absolute path as host so pdf_path stored by api.php matches inside the container. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
da23d546ce
commit
2441d124f9
1 changed files with 4 additions and 2 deletions
|
|
@ -8,8 +8,8 @@ services:
|
|||
context: .
|
||||
dockerfile: Dockerfile.worker
|
||||
volumes:
|
||||
- ${WEB_DIR:-/var/www/html/pdf-accessibility}/uploads:/app/uploads
|
||||
- ${WEB_DIR:-/var/www/html/pdf-accessibility}/results:/app/results
|
||||
- ${WEB_DIR:-/opt/pdf-accessibility}/uploads:${WEB_DIR:-/opt/pdf-accessibility}/uploads
|
||||
- ${WEB_DIR:-/opt/pdf-accessibility}/results:${WEB_DIR:-/opt/pdf-accessibility}/results
|
||||
- ./logs:/app/logs
|
||||
depends_on:
|
||||
redis:
|
||||
|
|
@ -24,6 +24,8 @@ services:
|
|||
- DB_NAME=${DB_NAME:-pdf_checker}
|
||||
- DB_USER=${DB_USER:-pdf_checker}
|
||||
- DB_PASSWORD=${DB_PASSWORD:-dev_password}
|
||||
- RESULTS_DIR=${WEB_DIR:-/opt/pdf-accessibility}/results
|
||||
- UPLOADS_DIR=${WEB_DIR:-/opt/pdf-accessibility}/uploads
|
||||
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
|
||||
- GOOGLE_API_KEY=${GOOGLE_API_KEY:-}
|
||||
deploy:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue