version: '3.8' services: backend: build: context: ./backend dockerfile: Dockerfile container_name: tts-backend ports: - "8888:8888" volumes: - ./backend/output:/app/output environment: - PYTHONUNBUFFERED=1 - OLLAMA_HOST=http://host.docker.internal:11434 extra_hosts: - "host.docker.internal:host-gateway" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8888/"] interval: 30s timeout: 10s retries: 5 start_period: 120s restart: unless-stopped networks: - tts-network frontend: build: context: ./frontend dockerfile: Dockerfile args: - VITE_API_URL=http://localhost:8888 container_name: tts-frontend ports: - "3333:80" depends_on: backend: condition: service_healthy restart: unless-stopped networks: - tts-network networks: tts-network: driver: bridge volumes: tts-output: