ci: update Docker Compose files to use released images instead of building from source

This commit is contained in:
remsky 2025-01-14 03:52:55 -07:00
parent 5cc3bacac1
commit 0bb2c1daa9
2 changed files with 15 additions and 14 deletions

View file

@ -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:

View file

@ -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: