version: '3.8' services: api: build: context: . dockerfile: Dockerfile.api container_name: tubescript-api image: tubescript-api:local user: "${LOCAL_UID:-1000}:${LOCAL_GID:-1000}" ports: - "8000:8000" volumes: - ./data:/app/data:rw environment: API_BASE_URL: http://localhost:8000 API_COOKIES_PATH: /app/data/cookies.txt TZ: UTC restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/docs"] interval: 30s timeout: 10s retries: 3 streamlit: build: context: . dockerfile: Dockerfile.streamlit container_name: tubescript-streamlit image: tubescript-streamlit:local depends_on: - api ports: - "8501:8501" volumes: - ./data:/app/data:ro environment: API_BASE_URL: http://localhost:8000 TZ: UTC restart: unless-stopped networks: default: name: tubescript-api_default