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
|
name: kokoro-tts
|
||||||
services:
|
services:
|
||||||
kokoro-tts:
|
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
|
# Uncomment below (and comment out above) to build from source instead of using the released image
|
||||||
build:
|
# build:
|
||||||
context: ../..
|
# context: ../..
|
||||||
dockerfile: docker/cpu/Dockerfile
|
# dockerfile: docker/cpu/Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- ../../api/src:/app/api/src
|
- ../../api/src:/app/api/src
|
||||||
- ../../Kokoro-82M:/app/Kokoro-82M
|
|
||||||
ports:
|
ports:
|
||||||
- "8880:8880"
|
- "8880:8880"
|
||||||
environment:
|
environment:
|
||||||
|
@ -23,10 +22,10 @@ services:
|
||||||
|
|
||||||
# Gradio UI service [Comment out everything below if you don't need it]
|
# Gradio UI service [Comment out everything below if you don't need it]
|
||||||
gradio-ui:
|
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
|
# Uncomment below (and comment out above) to build from source instead of using the released image
|
||||||
build:
|
# build:
|
||||||
context: ../../ui
|
# context: ../../ui
|
||||||
ports:
|
ports:
|
||||||
- "7860:7860"
|
- "7860:7860"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
name: kokoro-tts
|
name: kokoro-tts
|
||||||
services:
|
services:
|
||||||
kokoro-tts:
|
kokoro-tts:
|
||||||
build:
|
image: ghcr.io/remsky/kokoro-fastapi-gpu:latest
|
||||||
context: ../..
|
# Uncomment below (and comment out above) to build from source instead of using the released image
|
||||||
dockerfile: docker/gpu/Dockerfile
|
# build:
|
||||||
|
# context: ../..
|
||||||
|
# dockerfile: docker/gpu/Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- ../../api/src:/app/api/src # Mount src for development
|
- ../../api/src:/app/api/src # Mount src for development
|
||||||
ports:
|
ports:
|
||||||
|
@ -20,10 +22,10 @@ services:
|
||||||
|
|
||||||
# Gradio UI service
|
# Gradio UI service
|
||||||
gradio-ui:
|
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
|
# Uncomment below to build from source instead of using the released image
|
||||||
build:
|
# build:
|
||||||
context: ../../ui
|
# context: ../../ui
|
||||||
ports:
|
ports:
|
||||||
- "7860:7860"
|
- "7860:7860"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Add table
Reference in a new issue