diff --git a/self-hosting/docker-compose/.env.example b/self-hosting/docker-compose/.env.example index f414eb7d0..b9bc3b821 100644 --- a/self-hosting/docker-compose/.env.example +++ b/self-hosting/docker-compose/.env.example @@ -36,6 +36,7 @@ LOCAL_MINIO_URL=http://localhost:1010 # Redis REDIS_URL=redis://redis:6379/0 +REDIS_TTS_URL=redis://redis:6379/1 #MAIL WATCHER_API_KEY=mail-api-key diff --git a/self-hosting/docker-compose/docker-compose.yml b/self-hosting/docker-compose/docker-compose.yml index d36e12f9a..ee16ec80a 100644 --- a/self-hosting/docker-compose/docker-compose.yml +++ b/self-hosting/docker-compose/docker-compose.yml @@ -44,6 +44,25 @@ services: migrate: condition: service_completed_successfully + tts: + image: "ghcr.io/omnivore-app/sh-backend:latest" + container_name: "omnivore-tts" + command: ["yarn", "workspace", "@omnivore/text-to-speech-handler", "start_streaming"] + ports: + - "5000:8080" + healthcheck: + test: ["CMD-SHELL", "nc -z 0.0.0.0 8080 || exit 1"] + interval: 15s + timeout: 90s + retries: 6 + env_file: + - .env + depends_on: + redis: + condition: service_healthy + migrate: + condition: service_completed_successfully + queue-processor: image: "ghcr.io/omnivore-app/sh-queue-processor:latest" container_name: "omnivore-queue-processor"