From 0bb2c1daa9d90aef0c86bf6e38191c53130f7866 Mon Sep 17 00:00:00 2001 From: remsky Date: Tue, 14 Jan 2025 03:52:55 -0700 Subject: [PATCH] ci: update Docker Compose files to use released images instead of building from source --- docker/cpu/docker-compose.yml | 15 +++++++-------- docker/gpu/docker-compose.yml | 14 ++++++++------ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/docker/cpu/docker-compose.yml b/docker/cpu/docker-compose.yml index 08403a5..72d08a5 100644 --- a/docker/cpu/docker-compose.yml +++ b/docker/cpu/docker-compose.yml @@ -1,14 +1,13 @@ name: kokoro-tts services: kokoro-tts: - # image: ghcr.io/remsky/kokoro-fastapi-cpu:latest + image: ghcr.io/remsky/kokoro-fastapi-cpu:latest # Uncomment below (and comment out above) to build from source instead of using the released image - build: - context: ../.. - dockerfile: docker/cpu/Dockerfile + # build: + # context: ../.. + # dockerfile: docker/cpu/Dockerfile volumes: - ../../api/src:/app/api/src - - ../../Kokoro-82M:/app/Kokoro-82M ports: - "8880:8880" environment: @@ -23,10 +22,10 @@ services: # Gradio UI service [Comment out everything below if you don't need it] gradio-ui: - # image: ghcr.io/remsky/kokoro-fastapi:latest-ui + image: ghcr.io/remsky/kokoro-fastapi:latest-ui # Uncomment below (and comment out above) to build from source instead of using the released image - build: - context: ../../ui + # build: + # context: ../../ui ports: - "7860:7860" volumes: diff --git a/docker/gpu/docker-compose.yml b/docker/gpu/docker-compose.yml index 5775abe..d1f0622 100644 --- a/docker/gpu/docker-compose.yml +++ b/docker/gpu/docker-compose.yml @@ -1,9 +1,11 @@ name: kokoro-tts services: kokoro-tts: - build: - context: ../.. - dockerfile: docker/gpu/Dockerfile + image: ghcr.io/remsky/kokoro-fastapi-gpu:latest + # Uncomment below (and comment out above) to build from source instead of using the released image + # build: + # context: ../.. + # dockerfile: docker/gpu/Dockerfile volumes: - ../../api/src:/app/api/src # Mount src for development ports: @@ -20,10 +22,10 @@ services: # Gradio UI service gradio-ui: - # image: ghcr.io/remsky/kokoro-fastapi-ui:latest + image: ghcr.io/remsky/kokoro-fastapi-ui:latest # Uncomment below to build from source instead of using the released image - build: - context: ../../ui + # build: + # context: ../../ui ports: - "7860:7860" volumes: