23 lines
502 B
YAML
23 lines
502 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.api
|
|
image: tubescript-api:local
|
|
container_name: tubescript-api
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- TZ=UTC
|
|
- API_BASE_URL=${API_BASE_URL:-http://localhost:8000}
|
|
volumes:
|
|
- ./cookies.txt:/app/cookies.txt
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/docs" ]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|