fix: user 1000:1000 pour backend+worker (permissions NFS) + worker manquant
CI / Lint & Format (push) Failing after 9s
CI / Tests (push) Has been skipped
CI / Security Scan (push) Failing after 7s
CI / Docker Build (push) Has been skipped

This commit is contained in:
2026-06-24 12:01:51 -04:00
parent 6eb98f6ed9
commit a7fe32f66e
+24
View File
@@ -13,6 +13,7 @@ services:
backend:
image: docker-registry.dev.home:5000/imago-backend:latest
user: "1000:1000"
ports:
- "${BACKEND_PORT:-8001}:8000"
environment:
@@ -33,6 +34,29 @@ services:
condition: service_healthy
restart: unless-stopped
worker:
image: docker-registry.dev.home:5000/imago-backend:latest
user: "1000:1000"
command: python worker.py
environment:
DATABASE_URL: postgresql+asyncpg://imago:imago@db:5432/imago
REDIS_URL: redis://redis:***@db:5432/imago
REDIS_URL: redis://redis:6379/0
STORAGE_BACKEND: ${STORAGE_BACKEND:-local}
UPLOAD_DIR: ${UPLOAD_DIR:-/app/data/uploads}
THUMBNAILS_DIR: ${THUMBNAILS_DIR:-/app/data/thumbnails}
MAX_UPLOAD_SIZE_MB: ${MAX_UPLOAD_SIZE_MB:-50}
SIGNED_URL_SECRET: ${SIGNED_URL_SECRET:-changez-moi-en-prod}
volumes:
- ${UPLOAD_VOLUME:-uploads}:/app/data/uploads
- ${THUMBNAIL_VOLUME:-thumbnails}:/app/data/thumbnails
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
environment: