TubeScript-API/docker-compose.yml

32 lines
778 B
YAML

version: '3.8'
services:
# Servicio FastAPI - Backend API
tubescript-api:
build:
context: .
dockerfile: Dockerfile
container_name: tubescript_api
ports:
- "8080:8000"
volumes:
- ./cookies.txt:/app/cookies.txt:ro # Solo lectura
- ./stream_config.json:/app/stream_config.json
- ./streams_state.json:/app/streams_state.json
- ./data:/app/data # Directorio para datos persistentes
environment:
- PYTHONUNBUFFERED=1
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