services: # Servicio FastAPI - Backend API tubescript-api: build: context: . dockerfile: Dockerfile.api args: # Invalida solo la capa COPY . /app para que siempre tome el código más reciente # sin necesidad de --no-cache (que descarga todo desde cero) CACHEBUST: "${CACHEBUST:-1}" image: tubescript-api:latest container_name: tubescript_api ports: - "8282:8000" volumes: - ./data:/app/data:rw environment: - PYTHONUNBUFFERED=1 - API_COOKIES_PATH=/app/data/cookies.txt # Optional: set API_PROXY when you want the container to use a SOCKS/HTTP proxy - API_PROXY=${API_PROXY:-} restart: unless-stopped networks: - tubescript-network healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/docs"] interval: 30s timeout: 10s retries: 3 start_period: 40s networks: tubescript-network: name: tubescript-network driver: bridge