TubeScript-API/docker-compose.local.yml

47 lines
1.1 KiB
YAML

version: '3.8'
services:
api:
build:
context: .
dockerfile: Dockerfile.api
container_name: tubescript-api
image: tubescript-api:local
ports:
- "8000:8000"
volumes:
- ./cookies.txt:/app/cookies.txt
- ./stream_config.json:/app/stream_config.json:ro
- ./streams_state.json:/app/streams_state.json:rw
environment:
API_BASE_URL: http://localhost:8000
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:
- ./stream_config.json:/app/stream_config.json:ro
- ./cookies.txt:/app/cookies.txt:ro
environment:
API_BASE_URL: http://localhost:8000
TZ: UTC
restart: unless-stopped
networks:
default:
name: tubescript-api_default