services: postgres: image: postgres:16-alpine restart: unless-stopped environment: POSTGRES_USER: clipforge POSTGRES_PASSWORD: clipforge POSTGRES_DB: clipforge volumes: - pgdata:/var/lib/postgresql/data ports: - "5432:5432" healthcheck: test: ["CMD-SHELL", "pg_isready -U clipforge"] interval: 5s timeout: 5s retries: 10 redis: image: redis:7-alpine restart: unless-stopped ports: - "6379:6379" healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 5s timeout: 5s retries: 10 api: build: context: ./backend target: api restart: unless-stopped depends_on: postgres: condition: service_healthy redis: condition: service_healthy env_file: ./backend/.env environment: DATABASE_URL: postgresql://clipforge:clipforge@postgres:5432/clipforge REDIS_URL: redis://redis:6379 FRONTEND_DIR: /frontend STORAGE_DIR: /storage volumes: - ./frontend:/frontend:ro - storage:/storage ports: - "4000:4000" command: sh -c "npx prisma migrate deploy && node dist/server.js" worker: build: context: ./backend target: worker restart: unless-stopped depends_on: postgres: condition: service_healthy redis: condition: service_healthy env_file: ./backend/.env environment: DATABASE_URL: postgresql://clipforge:clipforge@postgres:5432/clipforge REDIS_URL: redis://redis:6379 STORAGE_DIR: /storage volumes: - storage:/storage volumes: pgdata: storage: