mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-04-13 09:39:17 +00:00
ci: update Docker Compose files to use released images instead of building from source
This commit is contained in:
parent
5cc3bacac1
commit
0bb2c1daa9
2 changed files with 15 additions and 14 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue